util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal encodes v and returns encoded data

func RandomString

func RandomString(n int) string

RandomString generate a random string

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Unmarshal parses the encoded data and stores the result in the value pointed to by v

Types

This section is empty.

Jump to

Keyboard shortcuts

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