1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

Adding src/api/log_params.go

This commit is contained in:
Henrik Hautakoski 2022-02-21 13:07:41 +01:00
parent 8e41cbfc5b
commit 1b53650723
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

12
src/api/log_params.go Normal file
View 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)
}