eumLogLevel

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum

type Enum int

Enum 日志等级

const (
	Trace Enum = iota
	Debug
	Information
	Warning
	Error
	Critical
	NoneLevel
)

func GetEnum added in v0.8.0

func GetEnum(name string) Enum

GetEnum 名称转枚举

func (Enum) MarshalJSON added in v0.8.0

func (receiver Enum) MarshalJSON() ([]byte, error)

MarshalJSON to output non base64 encoded []byte 此处不能用指针,否则json序列化时不执行

func (Enum) ToString

func (receiver Enum) ToString() string

func (*Enum) UnmarshalJSON added in v0.8.0

func (receiver *Enum) UnmarshalJSON(b []byte) error

UnmarshalJSON to deserialize []byte

Jump to

Keyboard shortcuts

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