This is Java classfile parser, written in pure Go.
import (
"log"
parser "github.com/wreulicke/classfile-parser"
)
func main() {
f, err := os.Open("some/dir/foo.class")
if err != nil {
log.Fatal(err)
}
p := parser.New(f)
classfile, err := p.Parse()
if err != nil {
log.Fatal(err)
}
// ...
}
Java 22
Opcode parser is experimental.
- MIT