util

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(set []interface{}, val interface{}) bool

Contains if the slice contains the element

func In

func In(val interface{}, set []interface{}) bool

In if the element in the slice

func JsonString

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

JsonString generate json string for an object

func MD5

func MD5(str string) string

MD5 calculate md5 for a string

func ParseJson

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

ParseJson parse json string to an object

Types

This section is empty.

Jump to

Keyboard shortcuts

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