conv

package
v0.0.0-...-d57715f Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

BytesToString casts slice to string without copy

func ConvertToStruct

func ConvertToStruct(input map[string]interface{}, dst interface{}) error

func StringToBytes

func StringToBytes(s string) []byte

StringToBytes casts string to slice without copy

func Struct2Map

func Struct2Map(obj interface{}) (map[string]interface{}, error)

将结构体转成map

Types

This section is empty.

Jump to

Keyboard shortcuts

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