utils

package
v0.0.0-...-ecab513 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFieldTagMap

func GetFieldTagMap(d interface{}, tagIdentifier string) map[string]string

func GetFieldValue

func GetFieldValue(d interface{}, field string) interface{}

func GetTagValueMap

func GetTagValueMap(d interface{}, tagIdentifier string) map[string]string

Types

type Utils

type Utils struct {
	Log *log.Logger
}

func NewUtils

func NewUtils(l *log.Logger) *Utils

func (*Utils) ImplodeMapIntString

func (u *Utils) ImplodeMapIntString(glue string, pieces map[int]string) string

func (*Utils) ImplodeStringArr

func (u *Utils) ImplodeStringArr(glue string, pieces []string) string

func (*Utils) MicroTime

func (u *Utils) MicroTime() float64

Jump to

Keyboard shortcuts

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