github.com/sandwich-go/boost@v1.3.29/misc/annotation/option.go (about) 1 package annotation 2 3 //go:generate optiongen --option_with_struct_name=false --new_func=NewOptions --xconf=true --empty_composite_nil=true --usage_tag_name=usage 4 func OptionsOptionDeclareWithDefault() interface{} { 5 return map[string]interface{}{ 6 "MagicPrefix": "annotation@", // @MethodComment(只有包含 MagicPrefix 的行,才能萃取到注释) 7 "LowerKey": true, // @MethodComment(key是否为转化为小写) 8 "Descriptors": []Descriptor{}, // @MethodComment(描述数组) 9 } 10 }