utils

package
v0.0.0-...-4de286f Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeftV

func LeftV(left interface{}, right interface{}) interface{}

LeftV get left value

func LoadYaml

func LoadYaml(path string, v interface{}) error

LoadYaml defined load yaml file

func Now

func Now() *time.Time

Now defined Now

func RandomBytes

func RandomBytes(n int) ([]byte, error)

RandomBytes returns securely generated random bytes

func RightV

func RightV(left interface{}, right interface{}) interface{}

RightV get right value

func Some

func Some(target interface{}, initValue interface{}) interface{}

Some get or a default value

Types

This section is empty.

Jump to

Keyboard shortcuts

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