Standard library / go/doc/comment
go/doc/comment.List.BlankBefore()
Reports whether formatted lists require a preceding blank line. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func (l *List) BlankBefore() boolReturn Value
bool
Reports whether formatted lists require a preceding blank line.
Working Example
Example Snippetgo
package main
import ( "fmt" "go/doc/comment")
func main() { l := comment.List{Items: []*comment.ListItem{{}}, ForceBlankBefore: true} fmt.Println(l.BlankBefore())}