pull/1129/head
IMTTX 3 years ago committed by GitHub
parent a639340274
commit 0cdeb6c16b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      encoding/yaml/yaml.go

@ -5,14 +5,14 @@ import (
"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"
func init() {
encoding.RegisterCodec(codec{})
}
// codec is a Codec implementation with json.
// codec is a Codec implementation with yaml.
type codec struct{}
func (codec) Marshal(v interface{}) ([]byte, error) {

Loading…
Cancel
Save