ASN1C

ASN.1 Compiler User's Guide for Go

Objective Systems, Inc.

Version 7.7

License.  The software described in this document is furnished under a license agreement and may be used only in accordance with the terms of this agreement. This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety with the copyright and this notice intact.

Author's Contact Information.  Comments, suggestions, and inquiries regarding ASN1C or this document may be sent by electronic mail to .

Revision History

Table of Contents

1. Overview of ASN1C for Go
2. ASN1C Command Line Interface (CLI)
Running ASN1C
ASN1C Go Command Line Options
Compiler Configuration File
Compiler Error Reporting
3. ASN1C GUI Users Guide
Quick Start
Creating a Project
Editing Schemas
Compiling
Interface
4. Generated Go Source Code
General Hierarchy of Generated Go Source Files
General Form of a Generated Go Source File
5. Generated Go Main File (main.go)
6. ASN.1 To Go Type Mappings
Type Mappings
Value Mappings
Table Constraint Related Structures
7. Generated BER/DER Functions
Generated BER/DER Encode Functions
Generated BER/DER Decode Functions
8. Generated PER Functions
Generated PER Encode Functions
Generated PER Decode Functions
PER Bit Tracing
9. Generated JSON Functions
Custom JSON Attributes
Custom JSON Marshal/Unmarshal Functions
Invoking JSON Marshal/Unmarshal Functions
10. Generated Print Functions
Generated Print Functions
11. IMPORT/EXPORT of Types