diff options
| author | Jeff Carr <[email protected]> | 2024-11-26 03:16:06 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-26 03:16:06 -0600 |
| commit | 5d031310474e67e211449c434489ec537cabc51f (patch) | |
| tree | 1f6ec979fd20ab309873fe4a445ecb5f69bd199f | |
| parent | e924aa4b7d445dc659a23df032323ee71fa412a3 (diff) | |
try doc syntax from rill
| -rw-r--r-- | example_test.go | 17 | ||||
| -rw-r--r-- | forgeConfig/main.go | 12 |
2 files changed, 23 insertions, 6 deletions
diff --git a/example_test.go b/example_test.go new file mode 100644 index 0000000..6495a0d --- /dev/null +++ b/example_test.go @@ -0,0 +1,17 @@ +package forgepb_test + +import ( + "fmt" +) + +// --- Package examples --- + +// This example is copied from rill to understand golang docs +func Example() { + fmt.Println("nothing here yet") +} + +// This example is copied from rill to understand golang docs +func Example_batching() { + fmt.Println("nothing batching here yet") +} diff --git a/forgeConfig/main.go b/forgeConfig/main.go index ccb3596..1efa31e 100644 --- a/forgeConfig/main.go +++ b/forgeConfig/main.go @@ -20,12 +20,12 @@ func main() { if argv.List { repos.PrintTable() /* - log.Info(forgepb.RepoHeader()) - loop := repos.SortByPath() // get the list of repos - for loop.Scan() { - r := loop.Repo() - log.Info("repo:", r.GoPath) - } + log.Info(forgepb.RepoHeader()) + loop := repos.SortByPath() // get the list of repos + for loop.Scan() { + r := loop.Repo() + log.Info("repo:", r.GoPath) + } */ os.Exit(0) } |
