libutils

package
v0.0.0-...-0c48656 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStruct

func ConvertStruct(src interface{}, dest interface{}, fields []string) ([]string, error)

ConvertStruct todo

func ConvertTimestampFromProto

func ConvertTimestampFromProto(timestamp *ptypes.Timestamp) time.Time

func ConvertTimestampToProto

func ConvertTimestampToProto(timestamp time.Time) *ptypes.Timestamp

func FilterStringsInSlice

func FilterStringsInSlice(testList []string, compareList []string) []string

FilterStringsInSlice todo

func GenerateRandomString

func GenerateRandomString(n int) string

GenerateRandomString todo

func GetDBFields

func GetDBFields(src interface{}) []string

GetDBFields todo

func InterfaceSlice

func InterfaceSlice(slice interface{}) []interface{}

InterfaceSlice todo

func MapKeys

func MapKeys(m interface{}) []string

MapKeys todo

func RemoveStringsInSlice

func RemoveStringsInSlice(s []string, r []string) []string

RemoveStringsInSlice todo

func StringInSlice

func StringInSlice(a string, list []string) bool

StringInSlice todo

Types

type DummyType

type DummyType struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL