Skip to content

Commit

Permalink
Add net/netip to random expr imports
Browse files Browse the repository at this point in the history
  • Loading branch information
plunkettscott authored Dec 14, 2024
1 parent 3723387 commit 2a51970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/bobgen-helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func Types() drivers.Types {
ipAddr := netip.AddrFrom4(addr)
ipPrefix := netip.PrefixFrom(ipAddr, f.IntBetween(0, ipAddr.BitLen()))
return pgtypes.Inet{Prefix: ipPrefix}`,
RandomExprImports: importers.List{`"crypto/rand"`},
RandomExprImports: importers.List{`"crypto/rand"`, `"net/netip"`},
},
"pgtypes.Macaddr": {
Imports: importers.List{`"github.com/stephenafamo/bob/types/pgtypes"`},
Expand Down

0 comments on commit 2a51970

Please sign in to comment.