Skip to content
Permalink
Browse files

add option to ignore package in readme

  • Loading branch information...
bobheadxi committed Jul 28, 2019
1 parent 7eba799 commit 64ccb0b44ce4318d0ca0fa1c38ee5ba780e8e5e9
Showing with 4 additions and 0 deletions.
  1. +1 −0 config.go
  2. +3 −0 generate.go
@@ -3,6 +3,7 @@ package main
type canonical struct {
Path string
Subpackages []string
NoREADME bool
}

type config struct {
@@ -72,6 +72,9 @@ func generateREADME(cfg *config) {
table.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false})
table.SetCenterSeparator("|")
for _, k := range keys {
if cfg.Packages[k].NoREADME {
continue
}
pkgPath := cfg.Packages[k].Path
godocSource := pkgPath
if cfg.GodocFromSource {

0 comments on commit 64ccb0b

Please sign in to comment.
You can’t perform that action at this time.