common

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64StdDecode

func Base64StdDecode(s string) (string, error)

func Base64URLDecode

func Base64URLDecode(s string) (string, error)

func BoolToString

func BoolToString(b bool) string

func MapToKV

func MapToKV(m map[string]interface{}) (kv []string)

func Max

func Max(a, b int) int

func MustGetMapKeys added in v0.2.16

func MustGetMapKeys(m interface{}) (keys []string)

func ObjectToKV

func ObjectToKV(v interface{}, tagName string) (kv []string)

func SetRequire

func SetRequire(options *survey.AskOptions) error

func SetValue

func SetValue(values *url.Values, key string, value string)

func SliceUint64toUint32

func SliceUint64toUint32(from []uint64) (to []uint32)

func StringToBool

func StringToBool(s string) bool

func StringsMapToSet

func StringsMapToSet(s []string, mapper func(s string) string) map[string]struct{}

func StringsToSet

func StringsToSet(s []string) map[string]struct{}

Types

type FuzzyStringDecoder

type FuzzyStringDecoder struct {
}

func (*FuzzyStringDecoder) Decode

func (decoder *FuzzyStringDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)

Jump to

Keyboard shortcuts

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