Documentation ¶
Index ¶
- func CurrentTimestamp() int64
- func DecodeB64(in string) ([]byte, error)
- func DedupSlice(stringSlice []string) []string
- func GenRandomByteSlice(length int) ([]byte, error)
- func MarshalPretty(any interface{}) ([]byte, error)
- func MarshalYAML(any interface{}) ([]byte, error)
- func NewID() string
- func TsToUnixUTC(in *timestamppb.Timestamp) int64
- func UnixToUtcTS(in int64) *timestamppb.Timestamp
- func UnmarshalJson(data []byte, any interface{}) error
- func UnmarshalYAML(data []byte, any interface{}) error
- type Configurator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TsToUnixUTC ¶
func TsToUnixUTC(in *timestamppb.Timestamp) int64
func UnixToUtcTS ¶
func UnixToUtcTS(in int64) *timestamppb.Timestamp
helper func to convert unix timestamp (seconds) to timestamppb.Timestamp
Types ¶
Click to show internal directories.
Click to hide internal directories.