Versions in this module Expand all Collapse all v0 v0.2.0 Sep 28, 2020 v0.1.0 Sep 16, 2020 Changes in this version + func StarlarkExpr(input syntax.Expr, options ...Option) (string, error) + func StarlarkStmt(input syntax.Stmt, options ...Option) (string, error) + func WriteExpr(output io.StringWriter, input syntax.Expr, options ...Option) error + func WriteStmt(output io.StringWriter, input syntax.Stmt, options ...Option) error + type CallOption renderOption + const CallOptionMultiline + const CallOptionMultilineComma + const CallOptionMultilineCommaTwoAndMore + const CallOptionMultilineMultiple + const CallOptionMultilineMultipleComma + const CallOptionMultilineMultipleCommaTwoAndMore + const CallOptionSingleLine + const CallOptionSingleLineComma + const CallOptionSingleLineCommaTwoAndMore + type DictOption renderOption + const DictOptionMultiline + const DictOptionMultilineComma + const DictOptionMultilineCommaTwoAndMore + const DictOptionMultilineMultiple + const DictOptionMultilineMultipleComma + const DictOptionMultilineMultipleCommaTwoAndMore + const DictOptionSingleLine + const DictOptionSingleLineComma + const DictOptionSingleLineCommaTwoAndMore + type ListOption renderOption + const ListOptionMultiline + const ListOptionMultilineComma + const ListOptionMultilineCommaTwoAndMore + const ListOptionMultilineMultiple + const ListOptionMultilineMultipleComma + const ListOptionMultilineMultipleCommaTwoAndMore + const ListOptionSingleLine + const ListOptionSingleLineComma + const ListOptionSingleLineCommaTwoAndMore + type Option func(*outputOpts) (*outputOpts, error) + func WithCallOption(value CallOption) Option + func WithDepth(depth int) Option + func WithDictOption(value DictOption) Option + func WithIndent(indent string) Option + func WithListOption(value ListOption) Option + func WithSpaceEqBinary(value bool) Option + func WithTupleOption(value TupleOption) Option + type TupleOption renderOption + const TupleOptionMultiline + const TupleOptionMultilineComma + const TupleOptionMultilineCommaTwoAndMore + const TupleOptionMultilineMultiple + const TupleOptionMultilineMultipleComma + const TupleOptionMultilineMultipleCommaTwoAndMore + const TupleOptionSingleLine + const TupleOptionSingleLineComma + const TupleOptionSingleLineCommaTwoAndMore