...

Package unquote

import "github.com/protocolbuffers/txtpbfmt/unquote"
Overview
Index

Overview ▾

Package unquote provides a function to unquote txtpb-formatted quoted string literals.

func Raw

func Raw(n *ast.Node) (string, error)

Raw returns the raw value of the string node, with string escapes left in place. Calling UnquoteRaw on non-string node doesn't panic, but is otherwise undefined.

func Unquote

func Unquote(n *ast.Node) (string, error)

Unquote returns the value of the string node. Calling Unquote on non-string node doesn't panic, but is otherwise undefined.