try doc syntax from rill

This commit is contained in:
Jeff Carr 2024-11-26 03:16:06 -06:00
parent e924aa4b7d
commit 5d03131047
2 changed files with 23 additions and 6 deletions

17
example_test.go Normal file
View File

@ -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")
}

View File

@ -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)
}