Documentation ¶
Index ¶
- func CamelCaseToSnakeCase(input string) string
- func DeepCopy(original []interface{}) []interface{}
- func DeepCopyOfMap(originalMap map[string]interface{}) map[string]interface{}
- func Deref[T any](p *T) T
- func GetFieldNames(msg proto.Message) (fieldNames []string)
- func Ref[T any](p T) *T
- func SafeTimestamp(t *time.Time) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelCaseToSnakeCase ¶
CamelCaseToSnakeCase converts a `camelCase` string to `snake_case`
func DeepCopy ¶
func DeepCopy(original []interface{}) []interface{}
DeepCopy copies an interface[] array
func DeepCopyOfMap ¶
DeepCopyOfMap copies a map
func GetFieldNames ¶ added in v1.4.17
GetFieldNames extracts all field names of a proto.Message. The extracted names are in lowercase with underscores
func SafeTimestamp ¶ added in v1.5.0
SafeTimestamp returns either the UNIX timestamp of the time t or 0 if it is nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.