convertx

package
v0.0.0-...-6d4b899 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package convertx Date: 2022/9/7 01:04 Author: Amu Description:

Package convertx Date: 2022/10/1 02:07 Author: Amu Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsString

func AsString(src interface{}) string

AsString any to string

func BytesToInt64

func BytesToInt64(buf []byte) int64

BytesToInt64 byte to int64

func Int64ToBytes

func Int64ToBytes(i int64) []byte

Int64ToBytes int64 转 []byte

func IntToInt64

func IntToInt64(value int) int64

IntToInt64 int to int64

func StringToInt

func StringToInt(value string) (i int)

StringToInt string to int

func StructToJson

func StructToJson(content interface{}) interface{}

func StructToMap

func StructToMap(content interface{}) map[string]interface{}

func ToInt64

func ToInt64(value interface{}) (d int64, err error)

ToInt64 any to int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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