Standard library / go/doc/comment

go/doc/comment.Plain

Represents unstyled inline text. Expected stdout: 'hello\n'.

Formal Syntax & Structure

go syntaxgo
type Plain string

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/doc/comment")
func main() { var x comment.Text = comment.Plain("hello"); fmt.Println(x) }
Go Reference