Skip to content

Commit d7ce371

Browse files
missed files
1 parent 467dcb7 commit d7ce371

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module gopkg.in/yaml.v3
22

3+
go 1.15
4+
35
require gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405

yaml.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@ func getStructInfo(st reflect.Type) (*structInfo, error) {
624624
continue
625625
}
626626

627-
if tag == "yaml_meta" && field.Type.String() != "yaml.StructMeta" {
628-
return nil, errors.New("yaml_meta must be of type yaml.StructMeta")
627+
if tag == yamlMeta && field.Type.String() != "yaml.StructMeta" {
628+
return nil, errors.New(yamlMeta + " must be of type yaml.StructMeta")
629629
}
630630

631631
info.Key = tag

0 commit comments

Comments
 (0)