Standard library / go/token

go/token.STRING

String literal. Token identity is distinct from the literal text returned by scanner.Scan. Expected stdout: 'STRING\n'.

Formal Syntax & Structure

go syntaxgo
const STRING Token

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/token")
func main() { fmt.Println(token.STRING.String()) }
Go Reference