package unquote

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

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

Index

Functions

func Raw

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

Raw returns the raw value of the string node and the rune used to quote it, 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, rune, error)

Unquote returns the value of the string node and the rune used to quote it. Calling Unquote on non-string node doesn't panic, but is otherwise undefined.

Source Files

unquote.go

Version
v0.0.0-20250326144435-a5fe55684d52 (latest)
Published
Mar 26, 2025
Platform
js/wasm
Imports
6 packages
Last checked
now

Tools for package owners.