inspect

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugJSON

func DebugJSON(v interface{}) string

func Render

func Render(wr io.Writer, s string) error

Types

type Field

type Field struct {
	Name         string `json:"name"`
	JSName       string `json:"js_name"`
	Help         string `json:"help"`
	Json         string `json:"json"`
	Type         string `json:"type"`
	Readonly     bool   `json:"readonly"`
	Null         bool   `json:"null,omitempty"`
	List         bool   `json:"list,omitempty"`
	InternalType bool   `json:"internal_type,omitempty"`
	Omitempty    bool   `json:"omitempty,omitempty"`
	TSType       string `json:"ts_type"`
	TSDefault    string `json:"ts_default"`
}

type Struct

type Struct struct {
	Name     string   `json:"name"`
	Help     string   `json:"help"`
	Fields   []*Field `json:"fields"`
	Readonly bool     `json:"readonly,omitempty"`
}

func Parse

func Parse() ([]*Struct, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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