Standard library / go/doc/comment
go/doc/comment.Block
Interface for block-level comment elements. Expected stdout: '*comment.Paragraph\n'.
Formal Syntax & Structure
go syntaxgo
type Block interface {}Working Example
Example Snippetgo
package main
import ( "fmt" "go/doc/comment")
func main() { var b comment.Block = &comment.Paragraph{}; fmt.Printf("%T\n", b) }