v0.1.3 bound parse memory and errors, conform better to toml spec for escpae and control chars
Test / test (push) Canceled after 0s
Test / test (push) Canceled after 0s
This commit is contained in:
8 files changed
+283
-40
No files matched your search
@@ -46,9 +46,11 @@ func (t Token) String() string {
|
||||
return fmt.Sprintf("Error(%s)", t.Literal)
|
||||
case TokenNewline:
|
||||
return "Newline"
|
||||
case TokenString:
|
||||
return "string" // its content may be a secret, as in a credentials file
|
||||
}
|
||||
if len(t.Literal) > 20 {
|
||||
return fmt.Sprintf("%q...", t.Literal[:20])
|
||||
}
|
||||
return fmt.Sprintf("%q", t.Literal)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user