simplestruct

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIntSlice added in v0.3.3

func AppendIntSlice(s1, s2 []int64) (slice []int64)

AppendIntSlice 合并(追加方式)2个切片

func IntContains added in v0.3.3

func IntContains(slice []int64, val int64) (ok bool)

IntContains 判断 item 是否存在 切片中

func ToBuiltinInt64Slice

func ToBuiltinInt64Slice(slice []Int64) (int64Slice []int64)

ToBuiltinInt64Slice Int64类型切片转换为 系统内置标准的int64类型切片

Types

type Int64

type Int64 int64

Int64Str 实现主要来源于 https://stackoverflow.com/questions/49415573/golang-json-how-do-i-unmarshal-array-of-strings-into-int64?rq=1

func ToInt64Slice

func ToInt64Slice(int64Slice []int64) (slice []Int64)

ToInt64Slice 系统内置标准的int64类型切片 转换为Int64类型切片

func (Int64) MarshalJSON

func (i Int64) MarshalJSON() ([]byte, error)

MarshalJSON 满足json 序列化接口

func (*Int64) UnmarshalJSON

func (i *Int64) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON 满足json 反序列化接口

Jump to

Keyboard shortcuts

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