lib

module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0

README

lib

Golang Codecov License

Install

  • Only Go 1.17+
go get -u github.com/go-sdk/lib

Env

  • log.console.level string

  • log.console.color bool

  • log.file.level string

  • log.file.color bool

  • log.file.json bool

  • log.file.path string

  • log.file.max_size int

  • log.file.max_age int

  • log.file.max_backups int

  • log.file.local_time bool

  • log.file.compress bool

  • db.type mysql or postgres

  • db.dsn string

  • db.log.disable bool

  • db.log.use_info_sql bool

  • db.log.show_not_found_error bool

  • db.log.slow_threshold duration

  • seq.snowflake.epoch int 13位

  • seq.snowflake.node int

  • seq.uuid.epoch int 18位

  • srv.gin.mode release|debug

  • token.key string HS256

  • token.expire duration

License

Apache License 2.0

Directories

Path Synopsis
codec
xml
ds
dt
Package flag implements command-line flag parsing.
Package flag implements command-line flag parsing.
internal
dateparse
Package dateparse parses date-strings without knowing the format in advance, using a fast lex based approach to eliminate shotgun attempts.
Package dateparse parses date-strings without knowing the format in advance, using a fast lex based approach to eliminate shotgun attempts.

Jump to

Keyboard shortcuts

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