mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-19 21:18:07 +02:00
fix typos (#1128)
This commit is contained in:
parent
a639340274
commit
0cdeb6c16b
@ -5,14 +5,14 @@ import (
|
|||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Name is the name registered for the json codec.
|
// Name is the name registered for the yaml codec.
|
||||||
const Name = "yaml"
|
const Name = "yaml"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
encoding.RegisterCodec(codec{})
|
encoding.RegisterCodec(codec{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// codec is a Codec implementation with json.
|
// codec is a Codec implementation with yaml.
|
||||||
type codec struct{}
|
type codec struct{}
|
||||||
|
|
||||||
func (codec) Marshal(v interface{}) ([]byte, error) {
|
func (codec) Marshal(v interface{}) ([]byte, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user