Documentation ¶
Index ¶
- func AssembleDSN(host, port, user, password, database string) string
- func CompareSlices[T comparable](s1, s2 []T) ([]T, []T)
- func IsEmptySlice[T any](slice []T) bool
- func MergeNameWithOwner(owner, name string) string
- func NilIfZero(t time.Time) *time.Time
- func SplitNameWithOwner(s string) (string, string)
- func WaitSignal(errC chan error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssembleDSN ¶
func CompareSlices ¶
func CompareSlices[T comparable](s1, s2 []T) ([]T, []T)
CompareSlices compare elements in two slices return elements s2 more than s1, s2 less than s1
func IsEmptySlice ¶
func MergeNameWithOwner ¶
func SplitNameWithOwner ¶
SplitNameWithOwner split nameWithOwner string into owner and name string e.g. cloudwego/hertz => cloudwego hertz
func WaitSignal ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.