mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RealCallerMarshalFunc func(uintptr, string, int) string

Functions

func CallerMarshalFunc

func CallerMarshalFunc(pc uintptr, file string, line int) string

func OpenFileFunc

func OpenFileFunc(name string, flag int, perm os.FileMode) (*os.File, error)

func TimestampFunc

func TimestampFunc() time.Time

Types

type Config

type Config struct {
	Level      string
	Console    bool
	FileName   string
	TimeFormat string
}

func NewConfig

func NewConfig() Config

func (Config) LogConsole

func (c Config) LogConsole() bool

func (Config) LogFileName

func (c Config) LogFileName() string

func (Config) LogLevel

func (c Config) LogLevel() string

func (Config) LogTimeFormat

func (c Config) LogTimeFormat() string

Jump to

Keyboard shortcuts

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