reflection

package
v0.0.0-...-f74f309 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(name string, x interface{})

尽量避免在一个包中暴露和反射相关的接口,所以用Display进程封装,只是接收interface类型的入参

func PrintMethod

func PrintMethod(x interface{})

打印一个类型的方法集

func Test

func Test()

func Test1

func Test1()

func Test2

func Test2()

func Test3

func Test3()

func Test4

func Test4()

Types

type Move

type Move struct {
	Title, Subtitle string
	Year            int
	Color           bool
	Actor           map[string]string
	Oscars          []string
	Sequel          *string
}

type Student

type Student struct {
	// contains filtered or unexported fields
}

func (Student) Show

func (s Student) Show()

Jump to

Keyboard shortcuts

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