This project provides a gzip-compressed JSON representation of x86-64 instructions, originally generated by astocko/json-x86-64, embedded as a Go module.
This makes the instruction set easily consumable from Go programs, without requiring submodules or external files.
This is a JSON file representing most x86-64 instructions in a readable, structured format. The source JSON was generated using astocko/json-x86-64, and then compressed (gzip) and embedded into this Go module using Go 1.16+'s embed feature.
Import the module:
import jsonx86 "github.com/HobbyOSs/json-x86-64-go-mod"Access the compressed data:
import (
"bytes"
"compress/gzip"
"io"
jsonx86 "github.com/HobbyOSs/json-x86-64-go-mod"
)
func load() ([]byte, error) {
r, err := gzip.NewReader(bytes.NewReader(jsonx86.X86JSONGZ))
if err != nil {
return nil, err
}
defer r.Close()
return io.ReadAll(r)
}The original data is provided under the MIT License by astocko/json-x86-64. This repository preserves that license.
See LICENSE for details.