You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kratos/encoding/yaml/yml.go

18 lines
233 B

package yaml
import "github.com/go-kratos/kratos/v2/encoding"
const NameAlias = "yml"
type codecAlias struct {
codec
}
func init() {
encoding.RegisterCodec(codecAlias{})
}
func (codecAlias) Name() string {
return NameAlias
}