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.
18 lines
233 B
18 lines
233 B
2 years ago
|
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
|
||
|
}
|