Standard library / go/doc/comment

go/doc/comment.List.BlankBetween()

Reports whether formatted lists require blank lines between items. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func (l *List) BlankBetween() bool

Return Value

bool

Reports whether formatted lists require blank lines between items.

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/doc/comment")
func main() {  l := comment.List{Items: []*comment.ListItem{{}}, ForceBlankBetween: true}  fmt.Println(l.BlankBetween())}
Go Reference