capnp

package
v0.0.0-...-ce83e3f Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCapnp

func GenerateCapnp(apiDef *raml.APIDefinition, dir, lang, pkg string) error

Types

type Struct

type Struct struct {
	ID            string
	Name          string
	Fields        map[string]field
	Description   []string
	OrderedFields []field
	T             raml.Type

	Enum *enum
	// contains filtered or unexported fields
}

func NewStruct

func NewStruct(t raml.Type, name, lang, pkg string) (Struct, error)

func (*Struct) Annotations

func (s *Struct) Annotations() []string

func (*Struct) Generate

func (s *Struct) Generate(dir string) error

Generate generates struct code

func (*Struct) Imports

func (s *Struct) Imports() []string

Jump to

Keyboard shortcuts

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