structutil

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFields

func GetFields(input interface{}) []string
获取结构体的字段名

示例:

type Employee struct {
	ID   int
 Name string
}

fields := getFields(Employee{}) 输出:[ID Name]

Types

This section is empty.

Jump to

Keyboard shortcuts

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