You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crate/log/logsdk/field.go

18 lines
252 B
Go

package logsdk
// Field 返回键值对
func Field(key string, value any) KV {
return KV{
Key: key,
Value: value,
}
}
// KV 是日志记录中的键值对
//
//nolint:govet
type KV struct {
Key string `json:"k"`
Value any `json:"v"`
}