Skip to content

Commit 972acb4

Browse files
authored
Fix annoying typo (#59)
1 parent 2cefae2 commit 972acb4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/go/enum_visitor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (e ${context.enum.name}) MarshalJSON() ([]byte, error) {
101101
return ${$.json}.Marshal(e.String())
102102
}
103103
104-
// UnmarshalJSON unmashals a quoted json string to the enum value
104+
// UnmarshalJSON unmarshals a quoted json string to the enum value
105105
func (e *${context.enum.name}) UnmarshalJSON(b []byte) error {
106106
var str string
107107
err := ${$.json}.Unmarshal(b, &str)
@@ -120,7 +120,7 @@ func (e *${context.enum.name}) UnmarshalJSON(b []byte) error {
120120
return e.String(), nil
121121
}
122122
123-
// UnmarshalYAML unmashals a quoted YAML string to the enum value
123+
// UnmarshalYAML unmarshals a quoted YAML string to the enum value
124124
func (e *${context.enum.name}) UnmarshalYAML(unmarshal func(any) error) error {
125125
var str string
126126
if err := unmarshal(&str); err != nil {

src/go/struct_visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class StructVisitor extends GoVisitor {
6666
this.write(`type ${type.name} struct {\n`);
6767

6868
if (writeTypeInfo) {
69-
this.write(` ns\n`);
69+
this.write(' ns `yaml:"-"`\n');
7070
}
7171
}
7272

testdata/go/expected/pkg/outputtest/interfaces.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)