Is it possible to compile compile .asn files to Golang code?

Viewed 37

Is there a proper way to compile a .asn file spec to Golang code ? I made it with C and Rust, but can't find anything for Golang (while it also supports a subset of ASN.1 spec in the standard library).

1 Answers

I think you mean: is there a tool that generates Golang code from ASN.1 specs ?

A Google search only shows one: https://www.obj-sys.com/products/asn1c/index.php

The encoding/asn1 go package is for very specific uses and will not help you (unless you decide to write your own compiler and use encoding/asn1 at runtime)

Related