ASN.1 Go Compiler

Native Go structs from ASN.1, with the simplicity Go developers expect.

The ASN.1 Go Compiler generates clean Go structs that feel like idiomatic Go code. Import the generated package alongside the runtime library, and you are encoding and decoding with standard method calls.

Go-native type mappings. INTEGER becomes int64, int32, or *big.Int depending on your constraints and preferences. REAL maps to float64 or float32. No wrappers, no adapters — just Go types.

One package per module. Each ASN.1 module produces its own Go package. Import it like any other package in your module and call Encode and Decode with an encoding rule constant.

Optional convenience methods. Generate Equals methods for deep comparison and String methods for debugging output. Enable what you need with a configuration flag.

Seven encoding rules, zero friction. BER, DER, UPER, APER, OER, XER, and JER support is built into the runtime. Your generated types work with all of them through the same interface.

Download SDK Back to Products