Documentation
¶
Index ¶
- func DiffSlices[K comparable](one []K, two []K) (oldS []K, newS []K)
- func JoinInt(array []int, sep string) string
- func MemberOfSlice[K comparable](element K, slice []K) bool
- func NewConfig(file string, c IConfig, vers []int) error
- func StrCat(args ...string) string
- func StrCatS(args []string) string
- func StrCatSln(args []string) string
- func StrCatln(args ...string) string
- type IConfig
- type IConfigVer
- type Logger
- type Loglevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffSlices ¶
func DiffSlices[K comparable](one []K, two []K) (oldS []K, newS []K)
DiffSlices returns differense between two slices
func MemberOfSlice ¶
func MemberOfSlice[K comparable](element K, slice []K) bool
MemberOfSlice checks if object is element of slice
Types ¶
type IConfig ¶
type IConfig interface { IConfigVer Check() error }
IConfig interface for checking version and general config validation
func NewMultiConfig ¶
NewMultiConfig for parsing and validating YAML config and map to config-dependent structs
type IConfigVer ¶
type IConfigVer interface {
GetVer() int
}
IConfigVer interface for checking version
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger struct
Click to show internal directories.
Click to hide internal directories.