example

package
v0.0.0-...-1f295fa Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BsonInlineType

type BsonInlineType struct{}

type BsonType1

type BsonType1 struct {
	BsonInlineType `bson:",inline"`
	Ignore         int `bson:"-"`
	SubKey         int `bson:"-,"`
	//same key
	A              int         `bson:"a,omitempty"`
	InvalidMinSize int         `bson:",minsize"`
	InvalidInline  int         `bson:",inline"`
	InvalidInline2 map[int]int `bson:",inline"`
	ValidInline    struct{}    `bson:",inline"`
}

type Type1

type Type1 struct {
	A int `json:"a"`
	B int `json:"B"`
	C int `json:"C,omitempty"`
	D int `json:",string"`
	E struct {
		A int
	} `json:"e,string"`
	F           int        `json:"-"`
	G           *int       `json:"-,string"`
	H           *errorCode `json:",string"`
	I           errorCode  `json:",string"`
	InvalidName errorCode  `json:"\\,string"`
}

type Type2

type Type2 struct {
	D struct {
		E int `json:"E"`
		F int `json:"F,omitempty"`
	}
}

type Type3

type Type3 struct {
	A interface{}   `binding:"exists"`
	B bool          `binding:"exists"`
	C *bool         `binding:"exists"`
	D io.ByteReader `binding:"exists"`
}

Jump to

Keyboard shortcuts

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