goxsd

package module
v0.0.0-...-aefb24f Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotatedComponent

type AnnotatedComponent interface {
	// contains filtered or unexported methods
}

type BasicLit

type BasicLit struct {
	Value string
	Kind  LitKind
	// contains filtered or unexported fields
}

Value

type CompositeLit

type CompositeLit struct {
	Type     Expr // nil means no literal type
	ElemList []Expr
	NKeys    int // number of elements with keys
	// contains filtered or unexported fields
}

Type { ElemList[0], ElemList[1], ... }

type ConstrainingFacet

type ConstrainingFacet interface {
	// contains filtered or unexported methods
}

type Decl

type Decl interface {
	Node
	// contains filtered or unexported methods
}

----------------------------------- Declarations

type Expr

type Expr interface {
	Node
	// contains filtered or unexported methods
}

type Field

type Field struct {
	Name *Name // nil means anonymous field/parameter (structs/parameters), or embedded interface (interfaces)
	Type Expr  // field names declared in a list share the same Type (identical pointers)
	Tags map[string]string
	// contains filtered or unexported fields
}

Name Type

Type

type File

type File struct {
	PkgName  string
	Imports  []Decl
	DeclList []Decl
}

----------------------------------- File

func (*File) HasImport

func (f *File) HasImport(path string) bool

func (*File) Require

func (f *File) Require(path string)

func (*File) Write

func (f *File) Write(buf *bytes.Buffer)

type FundamentalFacet

type FundamentalFacet interface {
	// contains filtered or unexported methods
}

type Generator

type Generator struct {
	PkgName        string
	ImportResolver func(namespace string, schemaLocation string) (*xsd.Schema, error)
	// contains filtered or unexported fields
}

func (*Generator) Generate

func (g *Generator) Generate(s *xsd.Schema, o io.Writer) error

type Group

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

All declarations belonging to the same group point to the same Group node.

type ImportDecl

type ImportDecl struct {
	LocalPkgName *Name
	Path         *BasicLit
	Group        *Group // nil means not part of a group
	// contains filtered or unexported fields
}

----------------------------------- Declarations

type KeyValueExpr

type KeyValueExpr struct {
	Key, Value Expr
	// contains filtered or unexported fields
}

Key: Value

type LitKind

type LitKind uint
const (
	IntLit LitKind = iota
	FloatLit
	ImagLit
	RuneLit
	StringLit
)

type Name

type Name struct {
	Value string
	// contains filtered or unexported fields
}

Value

type Node

type Node interface {
	// contains filtered or unexported methods
}

type PointerType

type PointerType struct {
	Elem Expr
	// contains filtered or unexported fields
}

*Elem

type SliceType

type SliceType struct {
	Elem Expr
	// contains filtered or unexported fields
}

[]Elem

type StructType

type StructType struct {
	FieldList []*Field
	// contains filtered or unexported fields
}

struct { FieldList[0] TagList[0]; FieldList[1] TagList[1]; ... }

type TypeDecl

type TypeDecl struct {
	Name  *Name
	Alias bool
	Type  Expr
	Group *Group // nil means not part of a group
	// contains filtered or unexported fields
}

----------------------------------- Declarations

type TypeDefinition

type TypeDefinition interface {
	// contains filtered or unexported methods
}

type VarDecl

type VarDecl struct {
	NameList []*Name
	Type     Expr   // nil means no type
	Values   Expr   // nil means no values
	Group    *Group // nil means not part of a group
	// contains filtered or unexported fields
}

NameList Type NameList Type = Values NameList = Values

Directories

Path Synopsis
tests

Jump to

Keyboard shortcuts

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