General Form of a Generated Go Source File

A generated Go file begins with package asn1gen. All generated Go code is included in the asn1gen package.

After that is an import statement, which will import the base run-time package, asn1rt, and any required built-in Go packages. This is followed by type definitions and encode and decode functions.