Documentation ¶
Index ¶
- Constants
- func CombineErrors(label string, messages []string) error
- func CombineSettings(resourceSettings map[string]interface{}, sharedSettings map[string]interface{}) (map[string]interface{}, error)
- func Contains(vs []string, t string) bool
- func Filter(vs []string, f func(string, int) bool) []string
- func FilterByPrefix(arr []string, prefix string) []string
- func FilterBySuffix(arr []string, suffix string) []string
- func FirstHasPrefix(arr []string, prefix string, cropped bool) (string, int)
- func FirstHasSuffix(arr []string, suffix string, cropped bool) (string, int)
- func Flatten(docName string, tree map[string]interface{}) (map[string]interface{}, error)
- func Index(vs []string, t string) int
- func IsDir(name string) bool
- func IsEmpty(x interface{}) bool
- func IsExists(name string) bool
- func IsZero(x interface{}) bool
- func Keys(m map[string]string) []string
- func Map(vs []string, f func(string, int) string) []string
- func PadString(text string, align AlignmentType, lineLength int, seed string) string
- func ParseCmd(cmd string) ([]string, error)
- func ParseDirMappings(paths []string) map[string]string
- func Reverse(arr []string) []string
- func ShutdownSignals() []os.Signal
- func SliceHead(arr []string, before int) []string
- func SliceTail(arr []string, from int) []string
- func SortDesc(arr []string) []string
- func Split(str string, sep string) []string
- func Stringify(srcs []Stringable) []string
- func SubSlice(arr []string, from int, to int) []string
- func TransformSettingsToEnvs(prefix string, settings map[string]interface{}, format string) ([]string, error)
- type AlignmentType
- type Stringable
Constants ¶
View Source
const MAPPING_DELIMITER string = "|"
Variables ¶
This section is empty.
Functions ¶
func CombineErrors ¶ added in v1.0.7
func CombineSettings ¶ added in v1.0.4
func FilterByPrefix ¶ added in v1.0.5
func FilterBySuffix ¶ added in v1.0.5
func FirstHasPrefix ¶ added in v1.0.4
func FirstHasSuffix ¶ added in v1.0.4
func IsZero ¶ added in v1.0.7
func IsZero(x interface{}) bool
v ~ reflect.ValueOf(x) x ~ v.Interface() reflect.TypeOf(x) ~ v.Type()
func PadString ¶ added in v1.0.5
func PadString(text string, align AlignmentType, lineLength int, seed string) string
func ParseDirMappings ¶
func ShutdownSignals ¶
func Stringify ¶ added in v1.0.7
func Stringify(srcs []Stringable) []string
Types ¶
type AlignmentType ¶ added in v1.0.5
type AlignmentType int
const ( LEFT AlignmentType CENTER RIGHT )
type Stringable ¶ added in v1.0.7
type Stringable interface {
String() string
}
Click to show internal directories.
Click to hide internal directories.