Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTagStyle ¶
func SetDefaultTagStyle ¶
func Struct ¶
Example ¶
package main import ( "fmt" "reflect" "github.com/anqur/procstruct" ) func main() { s := procstruct. Struct("Foo"). Header("is a foo."). Field("Data", reflect.TypeOf(0), "is the data.") fmt.Println(s) }
Output: // Foo is a foo. type Foo struct { // Data is the data. Data int }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.