Skip to content

Instantly share code, notes, and snippets.

@lucab
Created March 24, 2017 13:56
Show Gist options
  • Save lucab/f7162ca2d95191c692edc12ea8ccaaef to your computer and use it in GitHub Desktop.
Save lucab/f7162ca2d95191c692edc12ea8ccaaef to your computer and use it in GitHub Desktop.
golang: runtime access to private symbol "runtime.goarm"
package main
import (
"fmt"
_ "unsafe"
)
//go:linkname goarm runtime.goarm
var goarm uint8
func main() {
fmt.Println(goarm)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment