common

package
v0.0.0-...-57a77b0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error)

func IsError

func IsError(err error, message string) bool

func RegisterTime

func RegisterTime(timeType string, requestId int)

func SilentCheck

func SilentCheck(err error, message string)

func UnmarshalYaml

func UnmarshalYaml(file string, out interface{})

func UnmarshalYamlBytes

func UnmarshalYamlBytes(bytes []byte, out interface{})

func WaitGroup

func WaitGroup(delta int) *sync.WaitGroup

Types

type String

type String struct {
	// contains filtered or unexported fields
}

func NewString

func NewString(value string) *String

func (*String) Contains

func (s *String) Contains(value string) bool

func (*String) ReplaceAll

func (s *String) ReplaceAll(old string, new string) *String

func (*String) Split

func (s *String) Split(separator string) *StringSlice

func (*String) ToLower

func (s *String) ToLower() *String

func (*String) Trim

func (s *String) Trim(prefix string) *String

func (*String) TrimIndex

func (s *String) TrimIndex(index int) *String

func (*String) TrimPrefix

func (s *String) TrimPrefix(prefix string) *String

func (*String) UnescapeString

func (s *String) UnescapeString() *String

func (*String) Value

func (s *String) Value() string

type StringSlice

type StringSlice struct {
	// contains filtered or unexported fields
}

func (*StringSlice) Join

func (s *StringSlice) Join(separator string) *String

Jump to

Keyboard shortcuts

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