mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-16 04:44:55 +02:00
13 lines
342 B
Go
13 lines
342 B
Go
package api
|
|
|
|
type LogParams []interface{}
|
|
|
|
func (p *LogParams) Add(field string, value interface{}) {
|
|
*p = append(*p, field, value)
|
|
}
|
|
|
|
// Syntactic sugar for append(p, other...)
|
|
// Returns a new instance of LogParams with all values from both p and other
|
|
func (p LogParams) Combine(other LogParams) LogParams {
|
|
return append(p, other...)
|
|
}
|