json

package
v0.0.0-...-d8b213e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array struct {
	Elt    Type
	Depth  int
	Target string
}

func (Array) String

func (s Array) String() string

func (Array) Type

func (Array) Type() string

type Bool

type Bool struct {
	Depth  int
	Target string
}

func (Bool) String

func (Bool) String() string

func (Bool) Type

func (Bool) Type() string

type Float64

type Float64 struct {
	Depth  int
	Target string
}

func (Float64) String

func (Float64) String() string

func (Float64) Type

func (Float64) Type() string

type Int

type Int struct {
	Depth  int
	Target string
}

func (Int) String

func (Int) String() string

func (Int) Type

func (Int) Type() string

type Map

type Map struct {
	Key    Type
	Value  Type
	Depth  int
	Target string
}

func (Map) String

func (m Map) String() string

func (Map) Type

func (Map) Type() string

type Star

type Star struct {
	X      Type
	Depth  int
	Target string
}

func (Star) String

func (s Star) String() string

func (Star) Type

func (Star) Type() string

type State

type State struct {
	Schema Type
	Name   string
}

type String

type String struct {
	Depth  int
	Target string
}

func (String) String

func (String) String() string

func (String) Type

func (String) Type() string

type Struct

type Struct struct {
	Fields []StructField
	Depth  int
	Target string
}

func (*Struct) String

func (s *Struct) String() string

func (Struct) Type

func (Struct) Type() string

type StructField

type StructField struct {
	Key  string
	Type Type
}

type Type

type Type interface {
	Type() string
	String() string
}

type Unmarshaler

type Unmarshaler struct {
	// Import path we're generating code into
	TargetPath string
	// Find the type spec for the given import path and name
	Find func(importPath string, name string) (ast.Expr, error)
	// Add an import to the generated code
	Import func(path string) (name string, err error)
}

func (*Unmarshaler) Generate

func (u *Unmarshaler) Generate(importPath, name string) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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