Documentation ¶
Index ¶
- Variables
- func Inet_Aton(src string) uint32
- func Inet_NtoA(src uint32) net.IP
- func LoadPlugin(src *plugin.Plugin, opts ...*PluginOption) (count int)
- func Output(format string, args ...any)
- func OutputWithPrefix(pfx *Prefix, format string, args ...any)
- func Pow[T int | int16 | int32 | uint8 | uint16 | uint32](src T, step uint8) T
- func ReadConfig(filepath string, v Cnf) error
- func SetDebug()
- func SetRelease(filepath string, isflush bool, mode os.FileMode) error
- type Cnf
- type Error
- type Outputer
- type PluginOption
- type Prefix
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func LoadPlugin ¶
func LoadPlugin(src *plugin.Plugin, opts ...*PluginOption) (count int)
load plugin,return the real load count
func OutputWithPrefix ¶
func ReadConfig ¶
Types ¶
type Outputer ¶
type Outputer struct { Format string //format time string // contains filtered or unexported fields }
the independent outputer 22 july 2023
func NewOutputer ¶
func (*Outputer) OutputWithPrefix ¶
type PluginOption ¶
name is function's name which in your plugin go filem, target is tell plugin loador your function how to made here is an example var testone func(string)string var test_one PluginOption={"TestOne",testone}
Click to show internal directories.
Click to hide internal directories.