Documentation ¶
Index ¶
- func AddDevPrefix(name string) string
- func Contains[ctype comparable](slice []ctype, value ctype) bool
- func Eprintf(quiet, asErr bool, format string, a ...any)
- func IsUUID(value string) bool
- func ToJSON(obj interface{}) ([]byte, error)
- func ToYAML(i interface{}) ([]byte, error)
- func TrimDevPrefix(name string) string
- type SafeFile
- type StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[ctype comparable](slice []ctype, value ctype) bool
Contains checks whether value in the slice.
func TrimDevPrefix ¶
TrimDevPrefix trims dev directory prefix.
Types ¶
type SafeFile ¶
type SafeFile struct {
// contains filtered or unexported fields
}
SafeFile is used to write the yaml
func NewSafeFile ¶
NewSafeFile returns new SafeFile
Click to show internal directories.
Click to hide internal directories.