11// DO NOT EDIT.
2- // code generated by goenums 'v0.4.3 ' at Jun 30 01:47:17 .
2+ // code generated by goenums 'v0.4.4 ' at Sep 12 23:21:16 .
33//
44// github.com/zarldev/goenums
55//
@@ -251,9 +251,9 @@ func (d DiscountType) MarshalJSON() ([]byte, error) {
251251// UnmarshalJSON implements the json.Unmarshaler interface for DiscountType.
252252// It parses the JSON representation of the enum value from the byte slice.
253253// It returns an error if the input is not a valid JSON representation.
254- func (d * DiscountType ) UnmarshalJSON (b []byte ) error {
255- b = bytes .Trim (bytes .Trim (b , "\" " ), "\" " )
256- newd , err := ParseDiscountType (b )
254+ func (d * DiscountType ) UnmarshalJSON (by []byte ) error {
255+ by = bytes .Trim (bytes .Trim (by , "\" " ), "\" " )
256+ newd , err := ParseDiscountType (by )
257257 if err != nil {
258258 return err
259259 }
@@ -270,8 +270,8 @@ func (d DiscountType) MarshalText() ([]byte, error) {
270270// UnmarshalText implements the encoding.TextUnmarshaler interface for DiscountType.
271271// It parses the string representation of the enum value from the byte slice.
272272// It returns an error if the byte slice does not contain a valid enum value.
273- func (d * DiscountType ) UnmarshalText (b []byte ) error {
274- newd , err := ParseDiscountType (b )
273+ func (d * DiscountType ) UnmarshalText (by []byte ) error {
274+ newd , err := ParseDiscountType (by )
275275 if err != nil {
276276 return err
277277 }
@@ -306,8 +306,8 @@ func (d DiscountType) MarshalBinary() ([]byte, error) {
306306// UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for DiscountType.
307307// It parses the binary representation of the enum value from the byte slice.
308308// It returns an error if the byte slice does not contain a valid enum value.
309- func (d * DiscountType ) UnmarshalBinary (b []byte ) error {
310- newd , err := ParseDiscountType (b )
309+ func (d * DiscountType ) UnmarshalBinary (by []byte ) error {
310+ newd , err := ParseDiscountType (by )
311311 if err != nil {
312312 return err
313313 }
@@ -324,8 +324,8 @@ func (d DiscountType) MarshalYAML() ([]byte, error) {
324324// UnmarshalYAML implements the yaml.Unmarshaler interface for Planet.
325325// It parses the byte slice representation of the enum value and returns an error
326326// if the YAML byte slice does not contain a valid enum value.
327- func (d * DiscountType ) UnmarshalYAML (b []byte ) error {
328- newd , err := ParseDiscountType (b )
327+ func (d * DiscountType ) UnmarshalYAML (by []byte ) error {
328+ newd , err := ParseDiscountType (by )
329329 if err != nil {
330330 return err
331331 }
0 commit comments