commons

package module
v0.0.0-...-bcce1d1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

golang的一些常见工具方法.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(arr interface{}, obj interface{}) (bool, error)

Contains returns true if an element is present in a iteratee.

func Equal

func Equal(obj1 interface{}, obj2 interface{}) bool

func Intersect

func Intersect(x interface{}, y interface{}, res interface{}) error

func NotEqual

func NotEqual(obj1 interface{}, obj2 interface{}) bool

func ParseJson

func ParseJson(jsonStr string, v interface{}) error

func Split

func Split(arr []interface{}, size int) ([][]interface{}, error)

func ToJson

func ToJson(v interface{}) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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