mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 12:35:10 +03:00
20 lines
327 B
Go
20 lines
327 B
Go
|
// Package example will show you the power of gomarkdoc.
|
||
|
package example
|
||
|
|
||
|
// Example is just magical.
|
||
|
type Example struct {
|
||
|
// Foo is an int.
|
||
|
Foo int
|
||
|
|
||
|
// Bar is a string.
|
||
|
Bar string
|
||
|
}
|
||
|
|
||
|
// New creates an instance of Example with sensible default values.
|
||
|
func New() *Example {
|
||
|
return &Example{
|
||
|
Foo: 42,
|
||
|
Bar: "Baz",
|
||
|
}
|
||
|
}
|