mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-03 03:28:03 -05:00
Bumps [github.com/gookit/config/v2](https://github.com/gookit/config) from 2.1.8 to 2.2.2. - [Release notes](https://github.com/gookit/config/releases) - [Commits](https://github.com/gookit/config/compare/v2.1.8...v2.2.2) --- updated-dependencies: - dependency-name: github.com/gookit/config/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
16 lines
393 B
Go
16 lines
393 B
Go
// Package structs Provide some extends util functions for struct. eg: tag parse, struct init, value set
|
|
package structs
|
|
|
|
// IsExported field name on struct
|
|
func IsExported(name string) bool {
|
|
return name[0] >= 'A' && name[0] <= 'Z'
|
|
}
|
|
|
|
// IsUnexported field name on struct
|
|
func IsUnexported(name string) bool {
|
|
if name[0] == '_' {
|
|
return true
|
|
}
|
|
return name[0] >= 'a' && name[0] <= 'z'
|
|
}
|