exported types should have comment (golint)
This commit is contained in:
parent
c867632ebf
commit
116b4c7341
@ -118,12 +118,14 @@ func debug(msg string) {
|
|||||||
var docsPat = regexp.MustCompile("^\\s*(\\/\\/|#)\\s")
|
var docsPat = regexp.MustCompile("^\\s*(\\/\\/|#)\\s")
|
||||||
var dashPat = regexp.MustCompile("\\-+")
|
var dashPat = regexp.MustCompile("\\-+")
|
||||||
|
|
||||||
|
// Seg is a segment of an example
|
||||||
type Seg struct {
|
type Seg struct {
|
||||||
Docs, DocsRendered string
|
Docs, DocsRendered string
|
||||||
Code, CodeRendered string
|
Code, CodeRendered string
|
||||||
CodeEmpty, CodeLeading, CodeRun bool
|
CodeEmpty, CodeLeading, CodeRun bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Example is info extracted from an example file
|
||||||
type Example struct {
|
type Example struct {
|
||||||
Id, Name string
|
Id, Name string
|
||||||
GoCode, GoCodeHash, UrlHash string
|
GoCode, GoCodeHash, UrlHash string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user