Created
March 24, 2017 13:56
-
-
Save lucab/f7162ca2d95191c692edc12ea8ccaaef to your computer and use it in GitHub Desktop.
golang: runtime access to private symbol "runtime.goarm"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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