You should also consider using x/sys/cpu to query the cpu features directly (not sure if that applies to your use case or not).
On Tuesday, January 19, 2021 at 1:00:55 PM UTC-8 Ian Lance Taylor wrote: > On Tue, Jan 19, 2021 at 11:36 AM jan.f...@gmail.com > <jan.f...@gmail.com> wrote: > > > > Short question: GOARCH and GOOS is available from the runtime package, > but how do I get hold of the corresponding variable GOARM at runtime? > > I don't think there is a way to fetch it directly, but you can see it > by running "go env GOARM". > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f095a563-51ef-4c7d-90d5-e9c7c963e675n%40googlegroups.com.