Golang internal assembler for your projects
internal | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md | ||
version.go |
Go assembler generator
A generator of the internal assembler from the Go compiler, with import paths re-written for the assembler to be functional as a standalone library.
Usage
Call it within go generate to produce the output in your tree within a subdirectory.
package assembler
//go:generate go run git.gammaspectra.live/WeebDataHoarder/go-assembler-gen@v{GO_VERSION} -pkg assembler
You can use the ref
argument to use a different version than tagged.
Go versions
Releases are tagged as go{GO_VERSION}
or v{GO_VERSION}
.
See version.go to get the default tracked Golang version for this branch.
Other releases other than tracked Golang version are not supported (but might work).
Script adapted and updated from github.com/twitchyliquid64/golang-asm into pure Golang