From 5d031310474e67e211449c434489ec537cabc51f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 26 Nov 2024 03:16:06 -0600 Subject: [PATCH] try doc syntax from rill --- example_test.go | 17 +++++++++++++++++ forgeConfig/main.go | 12 ++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 example_test.go 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) }