Standard library / go/doc/comment
go/doc/comment.Italic
Represents italicized inline text. Expected stdout: 'comment.Italic word\n'.
Formal Syntax & Structure
go syntaxgo
type Italic stringWorking Example
Example Snippetgo
package main
import ( "fmt" "go/doc/comment")
func main() { var x comment.Text = comment.Italic("word"); fmt.Printf("%T %s\n", x, x) }