utils

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2018 License: MIT Imports: 1 Imported by: 59

README

go utils

some go util functions collection

  • str
  • env
  • web
  • cli
  • format format data tool
  • fs file system tool
  • json
  • maps
  • arr
  • num

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filling

func Filling(data interface{}, model interface{}) error

Filling filling a model from submitted data data 提交过来的数据结构体 model 定义表模型的数据结构体 相当于是在合并两个结构体(data 必须是 model 的子集)

func Go

func Go(f func() error) chan error

Go is a basic promise implementation: it wraps calls a function in a goroutine and returns a channel which will later return the function's return value. from beego/bee

Types

This section is empty.

Directories

Path Synopsis
Package arrUtil provides some util functions for array, slice
Package arrUtil provides some util functions for array, slice
Package cliUtil provides some util functions for CLI
Package cliUtil provides some util functions for CLI

Jump to

Keyboard shortcuts

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