xconvert

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyStructByJSON

func CopyStructByJSON(src, dst interface{}) error

CopyStructByJSON ...

func CopyStructByReflect

func CopyStructByReflect(src, dst interface{})

CopyStructByReflect ...

func Hex2Color added in v0.0.2

func Hex2Color(s string) color.Color

Hex2Color ...

func Hex2RGB added in v0.0.2

func Hex2RGB(s string) (int, int, int)

Hex2RGB ...

func RGB2Hex added in v0.0.2

func RGB2Hex(r, g, b int) string

RGB2Hex ...

func ToBool

func ToBool(v interface{}) bool

ToBool ...

func ToCamelCase

func ToCamelCase(s string) string

ToCamelCase ...

func ToFloat64

func ToFloat64(v interface{}) float64

ToFloat64 ...

func ToSnakeCase

func ToSnakeCase(s string) string

ToSnakeCase ...

func ToString

func ToString(v interface{}) string

ToString ...

func ToUint

func ToUint(v interface{}) uint64

ToUint ...

func XML2Map added in v0.0.2

func XML2Map(s string) (m map[string]string, err error)

XML2Map ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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