Documentation
¶
Overview ¶
Example (IterateStructTags) ¶
tags := reflect.StructTag(`json:"foo" db:"bar" number:"123"`)
for k, v := range IterateStructTags(tags) {
fmt.Println(k, "is set to:", v)
}
Output: json is set to: foo db is set to: bar number is set to: 123
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterateChunks ¶
Example ¶
var i int
for _, s := range IterateChunks("123,456,789,,,,,", ',') {
fmt.Println(s)
i++
}
fmt.Println("count:", i)
Output: 123 456 789 count: 3
func IterateFlags ¶
Example ¶
for flag := range IterateFlags("foo,bar,baz") {
fmt.Println(flag)
}
Output: foo bar baz
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.