utilx

package module
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 3 Imported by: 0

README

g

global go lib

go env config

env_prefix="app env prefix" # default ggg

warning

建议不要使用,还在积极开发中

It is not recommended to use, and it is still under active development.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyBytes

func CopyBytes(b []byte) []byte

CopyBytes copies a slice to make it immutable

func CopyString

func CopyString(s string) string

CopyString copies a string to make it immutable

func Default

func Default(t, f interface{}) interface{}

func If

func If(check bool, a, b interface{}) interface{}

If exported

func IsZero

func IsZero(val interface{}) bool

IsZero

func Try

func Try(fn func(), catch ...func(err error))

func UnsafeBytes

func UnsafeBytes(s string) (bs []byte)

#nosec G103 GetBytes returns a byte pointer without allocation

func UnsafeString

func UnsafeString(b []byte) string

#nosec G103 GetString returns a string pointer without allocation

Types

This section is empty.

Directories

Path Synopsis
Package attributes defines a generic key/value store used in various gRPC components.
Package attributes defines a generic key/value store used in various gRPC components.
internal
Package gorilla/schema fills a struct with form values.
Package gorilla/schema fills a struct with form values.
Package structs contains various utilities functions to work with structs.
Package structs contains various utilities functions to work with structs.
Package buffer provides an implementation of an unbounded buffer.
Package buffer provides an implementation of an unbounded buffer.
xobj
doc https://godoc.org/github.com/stretchr/objx
doc https://godoc.org/github.com/stretchr/objx

Jump to

Keyboard shortcuts

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