...

Package strconv

import "github.com/hashicorp/hcl/hcl/strconv"
Overview
Index

Overview ▾

Variables

ErrSyntax indicates that a value does not have the right syntax for the target type.

var ErrSyntax = errors.New("invalid syntax")

func Unquote

func Unquote(s string) (t string, err error)

Unquote interprets s as a single-quoted, double-quoted, or backquoted Go string literal, returning the string value that s quotes. (If s is single-quoted, it would be a Go character literal; Unquote returns the corresponding one-character string.)