Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package utils exposes helpers for robot handing of data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBoolToString

func ConvertBoolToString(p *bool, t, f string) string

func GetBool added in v1.0.0

func GetBool(p *bool) bool

func GetString

func GetString(p *string) string

func IsValidEmail added in v1.0.0

func IsValidEmail(email string) bool

func LoadFromYaml added in v1.0.0

func LoadFromYaml(path string, receiver interface{}) error

func LoadSingleSecret added in v1.0.0

func LoadSingleSecret(path string) ([]byte, error)

LoadSingleSecret reads and returns the value of a single file.

func LogIfHasError

func LogIfHasError(logger *logrus.Entry, err error)

func ResourceIsExist added in v1.0.0

func ResourceIsExist(path string, logger *logrus.Entry, fn [2]func()) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL