convertor

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 4 Imported by: 0

README

转换函数

用于数值类型之间的转换

列表

  1. int64转byte
  2. byte 转 int64
  3. string to int
  4. int to int64
  5. 任意类型转int64

导航

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyToAny

func AnyToAny(p interface{})

func BytesToInt64

func BytesToInt64(buf []byte) int64

byte 转 int64

func Int64ToBytes

func Int64ToBytes(i int64) []byte

int64 转 byte

func IntToInt64

func IntToInt64(value int) int64

int to int64

func StringToInt

func StringToInt(value string) (i int)

string to int

func ToInt64

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

convert any numeric value to int64 任意类型转int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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