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

16 lines
234 B
Go

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