Documentation
¶
Index ¶
- func AddConfig(name, expression string) modify.Action
- func AddImport(path string, name ...string) modify.Action
- func ExprExists(x []dst.Expr, y dst.Expr) bool
- func ExprIndex(x []dst.Expr, y dst.Expr) int
- func File(path string) modify.File
- func GoFile(file string) modify.GoFile
- func IsUsingImport(df *dst.File, path string, name ...string) bool
- func KeyExists(kvs []dst.Expr, key dst.Expr) bool
- func KeyIndex(kvs []dst.Expr, key dst.Expr) int
- func MustParseExpr(x string) (node dst.Node)
- func Register(expression string, before ...string) modify.Action
- func RemoveConfig(name string) modify.Action
- func RemoveImport(path string, name ...string) modify.Action
- func ReplaceConfig(name, expression string) modify.Action
- func Unregister(expression string) modify.Action
- func WhenFacade(facade string, applies ...modify.Apply) modify.Apply
- func WhenNoFacades(facades []string, applies ...modify.Apply) modify.Apply
- func WrapNewline[T dst.Node](node T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParseExpr ¶
func RemoveConfig ¶
RemoveConfig removes a configuration key from the config file.
func RemoveImport ¶
RemoveImport removes an import statement from the file.
func ReplaceConfig ¶
ReplaceConfig replaces a configuration key with the given expression in the config file.
func Unregister ¶
Unregister remove a registration from the matched specified array.
func WrapNewline ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.