examples

package
v0.0.0-...-849e097 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntToString

func IntToString(i int) string

Types

type A

type A struct {
	ID    int
	Str   string
	Bool  bool
	Slice []string
	Map   map[string]int
}

type B

type B struct {
	ID    int
	Str   string
	Bool  bool
	Slice []string
	Map   map[string]int
}

type Book

type Book struct {
	ID     int
	UserID int
	Title  string
	Price  Price
}

type CustomField

type CustomField struct {
	Num string
}

type Price

type Price struct {
	Currency string
	Amount   float64
}

type URLBuilder

type URLBuilder struct {
	Domain string
}

func (URLBuilder) Build

func (u URLBuilder) Build(path string) string

type URLer

type URLer interface {
	Build(path string) string
}

type User

type User struct {
	ID    int
	Name  string
	Books []Book
}

Directories

Path Synopsis
rename demonstrates how to use the `map` tag to customize the name for the mapper.
rename demonstrates how to use the `map` tag to customize the name for the mapper.
rename demonstrates how to use the `map` tag to customize the name for the mapper.
rename demonstrates how to use the `map` tag to customize the name for the mapper.

Jump to

Keyboard shortcuts

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