Documentation
¶
Index ¶
- func FormatFileSize(bytes int64) string
- func FromPtr[T any](abc *T) T
- func IfThen[T any](cond bool, val1 T, val2 T) T
- func IgnoreError[T any](a T, _ error) T
- func InSlice[T comparable](item T, items []T) bool
- func IntSlice[T int32 | uint32 | int64](abc []T) []int
- func IntTSlice[T int32 | uint32 | int64 | uint64](abc []int) []T
- func MapKeys[K comparable, V any](m map[K]V) []K
- func PrototextMarshal(m proto.Message) ([]byte, error)
- func PrototextUnmarshal(b []byte, m proto.Message) error
- func ToPtr[T any](abc T) *T
- func ToPtrOrNil[T any](ok bool, abc T) *T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFileSize ¶
func IgnoreError ¶
func InSlice ¶
func InSlice[T comparable](item T, items []T) bool
func MapKeys ¶
func MapKeys[K comparable, V any](m map[K]V) []K
func ToPtrOrNil ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.