mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-03 11:53:43 +02:00
Adding src/api/log_params.go
This commit is contained in:
parent
8e41cbfc5b
commit
1b53650723
1 changed files with 12 additions and 0 deletions
12
src/api/log_params.go
Normal file
12
src/api/log_params.go
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
package api
|
||||||
|
|
||||||
|
type LogParams []interface{}
|
||||||
|
|
||||||
|
func (p *LogParams) Add(field string, value interface{}) {
|
||||||
|
*p = append(*p, field, value)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p LogParams) ToSlice() []interface{} {
|
||||||
|
return []interface{}(p)
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue