mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
20 lines
360 B
Go
20 lines
360 B
Go
|
package yqlib
|
||
|
|
||
|
type LuaPreferences struct {
|
||
|
DocPrefix string
|
||
|
DocSuffix string
|
||
|
UnquotedKeys bool
|
||
|
Globals bool
|
||
|
}
|
||
|
|
||
|
func NewDefaultLuaPreferences() LuaPreferences {
|
||
|
return LuaPreferences{
|
||
|
DocPrefix: "return ",
|
||
|
DocSuffix: ";\n",
|
||
|
UnquotedKeys: false,
|
||
|
Globals: false,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var ConfiguredLuaPreferences = NewDefaultLuaPreferences()
|