mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 12:28:40 +08:00
ec7ac43948
* chore: reorg imports * chore: format code
17 lines
284 B
Go
17 lines
284 B
Go
package spec_test
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/zeromicro/go-zero/tools/goctl/api/spec"
|
|
)
|
|
|
|
func ExampleMember_GetEnumOptions() {
|
|
member := spec.Member{
|
|
Tag: `json:"foo,options=foo|bar|options|123"`,
|
|
}
|
|
fmt.Println(member.GetEnumOptions())
|
|
// Output:
|
|
// [foo bar options 123]
|
|
}
|