Create go type definitions and constructors.