golang

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGuest

func GenerateGuest(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)

GenerateGuest generates the guest bindings for the signature

func GenerateHost

func GenerateHost(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)

GenerateHost generates the host bindings for the signature

func GenerateModfile

func GenerateModfile(packageImportPath string) ([]byte, error)

GenerateModfile generates the go.mod file for the signature

func GenerateTypes

func GenerateTypes(signatureSchema *signature.Schema, packageName string) ([]byte, error)

GenerateTypes generates the types for the signature

Types

type Generator

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

Generator is the go generator

func New

func New() (*Generator, error)

New creates a new go generator

func (*Generator) GenerateGuest

func (g *Generator) GenerateGuest(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)

GenerateGuest generates the guest bindings for the signature

func (*Generator) GenerateHost

func (g *Generator) GenerateHost(signatureSchema *signature.Schema, signatureHash string, packageName string) ([]byte, error)

GenerateHost generates the host bindings for the signature

Note: the given schema should already be normalized, validated, and modified to have its accessors and validators disabled

func (*Generator) GenerateModfile

func (g *Generator) GenerateModfile(packageImportPath string) ([]byte, error)

GenerateModfile generates the modfile for the signature

func (*Generator) GenerateTypes

func (g *Generator) GenerateTypes(signatureSchema *signature.Schema, packageName string) ([]byte, error)

GenerateTypes generates the types for the signature

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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