This repository was archived by the owner on Jul 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,7 @@ type Package struct {
388
388
IgnoredGoFiles []string // .go source files ignored for this build
389
389
CFiles []string // .c source files
390
390
CXXFiles []string // .cc, .cpp and .cxx source files
391
+ MFiles []string // .m (Objective-C) source files
391
392
HFiles []string // .h, .hh, .hpp and .hxx source files
392
393
SFiles []string // .s source files
393
394
SwigFiles []string // .swig files
Original file line number Diff line number Diff line change 58
58
"comment_md" : comment_mdFunc ,
59
59
"base" : path .Base ,
60
60
"md" : mdFunc ,
61
- "pre" : preFunc ,
61
+ "pre" : preFunc ,
62
62
}
63
63
)
64
64
@@ -77,7 +77,7 @@ func mdFunc(text string) string {
77
77
}
78
78
79
79
func preFunc (text string ) string {
80
- return "``` go\n " + text + "\n ```"
80
+ return "``` go\n " + text + "\n ```"
81
81
}
82
82
83
83
func readTemplate (name , data string ) * template.Template {
@@ -97,6 +97,11 @@ func main() {
97
97
flag .Usage = usage
98
98
flag .Parse ()
99
99
100
+ // Check usage
101
+ if flag .NArg () == 0 {
102
+ usage ()
103
+ }
104
+
100
105
// use file system of underlying OS
101
106
fs .Bind ("/" , vfs .OS (* goroot ), "/" , vfs .BindReplace )
102
107
You can’t perform that action at this time.
0 commit comments