gox

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 10 Imported by: 0

README

gox

golang tools

Documentation

Index

Constants

View Source
const (
	DEV = "dev"
	STG = "stg"
	PRD = "prd"
)

Variables

This section is empty.

Functions

func Bool

func Bool(k string) bool

func Config

func Config() *viper.Viper

func DefaultObject

func DefaultObject(k string, def interface{}) interface{}

func Env

func Env() string

func Float

func Float(k string) float64

func Int

func Int(k string) int

func IntSlice added in v0.0.2

func IntSlice(k string) []int

func Logger

func Logger() *logrus.Logger

func Object

func Object(k string) interface{}

func String

func String(k string) string

func StringMap added in v0.0.2

func StringMap(k string) map[string]interface{}

func StringMapString added in v0.0.2

func StringMapString(k string) map[string]string

func StringMapStringSlice added in v0.0.2

func StringMapStringSlice(k string) map[string][]string

func StringSlice added in v0.0.2

func StringSlice(k string) []string

Types

type LineFormatter

type LineFormatter struct {
	TimestampFormat string //2006/01/02 15:04:05.000
}

func (*LineFormatter) Format

func (f *LineFormatter) Format(entry *logrus.Entry) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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