15 lines
251 B
Go
15 lines
251 B
Go
|
package client
|
||
|
|
||
|
type LogOptions struct {
|
||
|
Params map[string]string
|
||
|
}
|
||
|
|
||
|
type LogOption func(*LogOptions)
|
||
|
|
||
|
// LogParams provides additional params for logs
|
||
|
func LogParams(p map[string]string) LogOption {
|
||
|
return func(l *LogOptions) {
|
||
|
l.Params = p
|
||
|
}
|
||
|
}
|