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() bool

Return 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())}
Go Reference