You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Evan 3d72e51914 update 5 months ago
example update 5 months ago
.gitignore Initial commit 6 months ago
Makefile docs: update 5 months ago
README.md update 5 months ago
common.go update 5 months ago
error.go docs: update 5 months ago
go.mod docs: update 5 months ago
go.sum update 5 months ago

README.md

Common

Common util functions, this repo is only for collecting as gist.

func util declare
Mkdir(args ...interface{}) accepts multiple parts that would join as path, and optional os.FileMode common.go
URL(path ...string) string returns url for multipart paths common.go
Abort(c *gin.Context, args ...interface{}) Abort with optional code, error, subcode(<100). default status code: 400; error "error"; subcode:0; common.go
OK(c *gin.Context, args ...interface{}) OK with optional code, message, data. default code: 200; message "ok"; data: interface{} common.go