Standard library / go/doc/comment

go/doc/comment.Text

Interface for inline text and links. Expected stdout: 'comment.Plain\n'.

Formal Syntax & Structure

go syntaxgo
type Text interface {}

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/doc/comment")
func main() { var x comment.Text = comment.Plain("hello"); fmt.Printf("%T\n", x) }
Go Reference