kind_route

package
v0.0.0-...-4ce56c9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectUserInfo

func CollectUserInfo(param interface{})

Types

type Animal

type Animal interface {
	Speak() string
}

type Cat

type Cat struct{}

func (Cat) Speak

func (c Cat) Speak() string

type Person

type Person struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
	Sex  string `json:"sex"`
}

定义结构体及tag

func (Person) PrintInfo

func (p Person) PrintInfo()

func (Person) Say

func (p Person) Say(msg string)

type User

type User struct {
	Name    string
	Age     int64
	Address string
	Phone   int64
}

Jump to

Keyboard shortcuts

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