ginexamples

package
v0.0.0-...-15fd0d5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindUri

func BindUri(c *gin.Context)

func GetDataB

func GetDataB(c *gin.Context)

func GetDataC

func GetDataC(c *gin.Context)

func GetDataD

func GetDataD(c *gin.Context)

Types

type Person

type Person struct {
	ID   string `uri:"id" binding:"required,uuid"`
	Name string `uri:"name" binding:"required"`
}

type StructA

type StructA struct {
	FieldA string `form:"field_a"`
}

type StructB

type StructB struct {
	NestedStruct StructA
	FieldB       string `form:"field_b"`
}

type StructC

type StructC struct {
	NestedStructPointer *StructA
	FieldC              string `form:"field_c"`
}

type StructD

type StructD struct {
	NestedAnonyStruct struct {
		FieldX string `form:"field_x"`
	}
	FieldD string `form:"field_d"`
}

Jump to

Keyboard shortcuts

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