tools

package
v0.0.0-...-2c16882 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

工具包目录

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExist

func IsExist(path string) bool

func MkdirAll

func MkdirAll(path string)

Types

type StructTags

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

func NewFindStructTags

func NewFindStructTags(str interface{}, tags ...string) *StructTags

str struct tags tag name NewFindStructTags(&struct, "tagName1","tagName2")

func (*StructTags) GetTags

func (m *StructTags) GetTags(fieldName string) *Tags

GetFieldTag(结构里定义字段名区分大小写)

type Tags

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

func (*Tags) Get

func (m *Tags) Get(tagName string) string

Get 获得标签值

func (*Tags) Set

func (m *Tags) Set(tagName, value string)

Set 设置标签值

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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