Documentation ¶
Index ¶
Constants ¶
View Source
const BadJSONMissingColon = `{ "foo": "bar", bar" "baz" }`
View Source
const BadJSONMissingComma = `{ "foo": "bar" "bar": "baz" }`
View Source
const BadJSONMissingEndBrace = `{ "foo": "bar"`
View Source
const BadJSONMissingQuote = `{ "foo": "bar", bar": "baz" }`
View Source
const BadJSONMissingStartBrace = `"foo": "bar" }`
View Source
const BadMissingEqualInternalLine = `foo = "bar"
bad value
bar = "baz"`
View Source
const BadMissingEqualOneLine = `foo "bar"`
View Source
const BadMissingEqualSecondLine = `foo = "bar"
bad value`
View Source
const GoodConfigfileHCL = `# variable answers
child1.username="foo"
child1.password="bar"
rootuser="admin"
`
View Source
const GoodConfigfileJSON = `{
"child1.username": "foo",
"child1.password": "bar",
"rootuser": "admin"
}`
View Source
const JSONEmpty = ""
View Source
const JSONEmptyObject = "{}"
Variables ¶
View Source
var JSONFiles = map[pack.ID][]*pack.File{ "mypack": { { Name: "tc1.json", Content: []byte(BadJSONMissingStartBrace), Path: "/tmp/tc1.json", }, { Name: "tc2.json", Content: []byte(BadJSONMissingEndBrace), Path: "/tmp/tc2.json", }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.