Unverified Commit ad5b8262 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #53 from daotl/upstream

fix: import "math" in generated code for uint8 unmarshalling
parents 67a261a1 87e48c96
...@@ -57,6 +57,7 @@ package {{ .Package }} ...@@ -57,6 +57,7 @@ package {{ .Package }}
import ( import (
"fmt" "fmt"
"io" "io"
"math"
"sort" "sort"
{{ range .Imports }}{{ .Name }} "{{ .PkgPath }}" {{ range .Imports }}{{ .Name }} "{{ .PkgPath }}"
...@@ -66,6 +67,7 @@ import ( ...@@ -66,6 +67,7 @@ import (
var _ = xerrors.Errorf var _ = xerrors.Errorf
var _ = cid.Undef var _ = cid.Undef
var _ = math.E
var _ = sort.Sort var _ = sort.Sort
`) `)
......
...@@ -5,6 +5,7 @@ package testing ...@@ -5,6 +5,7 @@ package testing
import ( import (
"fmt" "fmt"
"io" "io"
"math"
"sort" "sort"
cid "github.com/ipfs/go-cid" cid "github.com/ipfs/go-cid"
...@@ -14,6 +15,7 @@ import ( ...@@ -14,6 +15,7 @@ import (
var _ = xerrors.Errorf var _ = xerrors.Errorf
var _ = cid.Undef var _ = cid.Undef
var _ = math.E
var _ = sort.Sort var _ = sort.Sort
var lengthBufSignedArray = []byte{129} var lengthBufSignedArray = []byte{129}
......
...@@ -5,6 +5,7 @@ package testing ...@@ -5,6 +5,7 @@ package testing
import ( import (
"fmt" "fmt"
"io" "io"
"math"
"sort" "sort"
cid "github.com/ipfs/go-cid" cid "github.com/ipfs/go-cid"
...@@ -14,6 +15,7 @@ import ( ...@@ -14,6 +15,7 @@ import (
var _ = xerrors.Errorf var _ = xerrors.Errorf
var _ = cid.Undef var _ = cid.Undef
var _ = math.E
var _ = sort.Sort var _ = sort.Sort
func (t *SimpleTypeTree) MarshalCBOR(w io.Writer) error { func (t *SimpleTypeTree) MarshalCBOR(w io.Writer) error {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment