From 1b83a7b86a45330e6e6fae325f739f73368aec87 Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Tue, 30 May 2017 17:01:03 +0900 Subject: [PATCH] fix doc for unmarshal method --- opt/gotemplate_Bool.go | 2 +- opt/gotemplate_Float32.go | 2 +- opt/gotemplate_Float64.go | 2 +- opt/gotemplate_Int.go | 2 +- opt/gotemplate_Int16.go | 2 +- opt/gotemplate_Int32.go | 2 +- opt/gotemplate_Int64.go | 2 +- opt/gotemplate_Int8.go | 2 +- opt/gotemplate_String.go | 2 +- opt/gotemplate_Uint.go | 2 +- opt/gotemplate_Uint16.go | 2 +- opt/gotemplate_Uint32.go | 2 +- opt/gotemplate_Uint64.go | 2 +- opt/gotemplate_Uint8.go | 2 +- opt/optional/opt.go | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/opt/gotemplate_Bool.go b/opt/gotemplate_Bool.go index 89e6132..927d239 100644 --- a/opt/gotemplate_Bool.go +++ b/opt/gotemplate_Bool.go @@ -57,7 +57,7 @@ func (v *Bool) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Bool) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Float32.go b/opt/gotemplate_Float32.go index 93ade1c..3d5f157 100644 --- a/opt/gotemplate_Float32.go +++ b/opt/gotemplate_Float32.go @@ -57,7 +57,7 @@ func (v *Float32) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Float32) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Float64.go b/opt/gotemplate_Float64.go index 90af91b..9719657 100644 --- a/opt/gotemplate_Float64.go +++ b/opt/gotemplate_Float64.go @@ -57,7 +57,7 @@ func (v *Float64) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Float64) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Int.go b/opt/gotemplate_Int.go index 71e74e8..bfe6eff 100644 --- a/opt/gotemplate_Int.go +++ b/opt/gotemplate_Int.go @@ -57,7 +57,7 @@ func (v *Int) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Int) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Int16.go b/opt/gotemplate_Int16.go index 987e3df..e2f5daa 100644 --- a/opt/gotemplate_Int16.go +++ b/opt/gotemplate_Int16.go @@ -57,7 +57,7 @@ func (v *Int16) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Int16) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Int32.go b/opt/gotemplate_Int32.go index e5f30d8..e0d6975 100644 --- a/opt/gotemplate_Int32.go +++ b/opt/gotemplate_Int32.go @@ -57,7 +57,7 @@ func (v *Int32) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Int32) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Int64.go b/opt/gotemplate_Int64.go index ff67a33..641fccc 100644 --- a/opt/gotemplate_Int64.go +++ b/opt/gotemplate_Int64.go @@ -57,7 +57,7 @@ func (v *Int64) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Int64) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Int8.go b/opt/gotemplate_Int8.go index 41312d1..9d6745c 100644 --- a/opt/gotemplate_Int8.go +++ b/opt/gotemplate_Int8.go @@ -57,7 +57,7 @@ func (v *Int8) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Int8) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_String.go b/opt/gotemplate_String.go index 3d818fa..d2799de 100644 --- a/opt/gotemplate_String.go +++ b/opt/gotemplate_String.go @@ -57,7 +57,7 @@ func (v *String) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *String) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Uint.go b/opt/gotemplate_Uint.go index 367db67..b41405b 100644 --- a/opt/gotemplate_Uint.go +++ b/opt/gotemplate_Uint.go @@ -57,7 +57,7 @@ func (v *Uint) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Uint) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Uint16.go b/opt/gotemplate_Uint16.go index 6abc71d..35c38fd 100644 --- a/opt/gotemplate_Uint16.go +++ b/opt/gotemplate_Uint16.go @@ -57,7 +57,7 @@ func (v *Uint16) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Uint16) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Uint32.go b/opt/gotemplate_Uint32.go index 490945c..118b794 100644 --- a/opt/gotemplate_Uint32.go +++ b/opt/gotemplate_Uint32.go @@ -57,7 +57,7 @@ func (v *Uint32) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Uint32) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Uint64.go b/opt/gotemplate_Uint64.go index 37d2d41..e540c9d 100644 --- a/opt/gotemplate_Uint64.go +++ b/opt/gotemplate_Uint64.go @@ -57,7 +57,7 @@ func (v *Uint64) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Uint64) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/gotemplate_Uint8.go b/opt/gotemplate_Uint8.go index 55c4cdb..f184569 100644 --- a/opt/gotemplate_Uint8.go +++ b/opt/gotemplate_Uint8.go @@ -57,7 +57,7 @@ func (v *Uint8) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Uint8) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l) diff --git a/opt/optional/opt.go b/opt/optional/opt.go index 6d3a079..29c4afa 100644 --- a/opt/optional/opt.go +++ b/opt/optional/opt.go @@ -58,7 +58,7 @@ func (v *Optional) MarshalJSON() ([]byte, error) { return w.Buffer.BuildBytes(), w.Error } -// MarshalJSON implements a standard json marshaler interface. +// UnmarshalJSON implements a standard json unmarshaler interface. func (v *Optional) UnmarshalJSON(data []byte) error { l := jlexer.Lexer{} v.UnmarshalEasyJSON(&l)