Documentation ¶
Index ¶
- func CamelCaseToSnakeCase(input string) string
- func Deref[T any](p *T) T
- func ExpandPath(path string) (out string, err error)
- func GetJSONFilenames(folder string) ([]string, error)
- func IsNil(value any) bool
- func Ref[T any](p T) *T
- func SafeTimestamp(t *time.Time) int64
- func Timestamp(t string) *timestamppb.Timestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelCaseToSnakeCase ¶
CamelCaseToSnakeCase converts a `camelCase` string to `snake_case`
func ExpandPath ¶
ExpandPath expands a path that possible contains a tilde (~) character into the home directory of the user
func GetJSONFilenames ¶
GetJSONFilenames returns all json files in the given folder
func SafeTimestamp ¶
SafeTimestamp returns either the UNIX timestamp of the time t or 0 if it is nil
func Timestamp ¶
func Timestamp(t string) *timestamppb.Timestamp
Timestamp converts a Timestamp string to a timestamppb.Timestamp
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.