examples: cpu feature checks (#171)

Add necessary feature checks to the dot and geohash examples to prevent illegal instruction errors.

Fixes #170 #153
This commit is contained in:
Michael McLoughlin
2021-04-06 22:24:58 -07:00
committed by GitHub
parent 599bdd1269
commit 8f3c4ea0bf
4 changed files with 21 additions and 1 deletions

1
go.mod
View File

@@ -4,5 +4,6 @@ go 1.11
require (
golang.org/x/arch v0.0.0-20201008161808-52c3e6f60cff
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f
golang.org/x/tools v0.0.0-20201105001634-bc3cf281b174
)