Skip to content

Commit

Permalink
fix: import "math" in generated code for uint8 unmarshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
NexZhu committed Apr 1, 2021
1 parent 67a261a commit 87e48c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ package {{ .Package }}
import (
"fmt"
"io"
"math"
"sort"
{{ range .Imports }}{{ .Name }} "{{ .PkgPath }}"
Expand All @@ -66,6 +67,7 @@ import (
var _ = xerrors.Errorf
var _ = cid.Undef
var _ = math.E
var _ = sort.Sort
`)
Expand Down
2 changes: 2 additions & 0 deletions testing/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions testing/cbor_map_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87e48c9

Please sign in to comment.