as

package
v0.0.0-...-958ee23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TSFileName = "index.ts"
View Source
const TSFileNameSuffix = "_buf.ts"

Variables

This section is empty.

Functions

This section is empty.

Types

type ASConfig

type ASConfig struct {
	BigEndianSafe bool
	Fluent        bool

	Package       string
	GlobalPackage string
	// By default a separate Mutable type is created for each struct
	// This flag sets that only one struct that is both read-only and mutable is generated
	Mutable       bool
	MultipleFiles bool
	Output        string
}

Configuration for the AssemblyScript/TypeScript code generator

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

Generates Go code

func NewCompiler

func NewCompiler(schema *Schema, config *ASConfig) (*Compiler, error)

func (*Compiler) Compile

func (c *Compiler) Compile() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL