Documentation ¶ Index ¶ type Config type Knit func New(cfg *Config) Knit Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { // Format tells knit to automatically format Go code files Format bool `yaml:"format"` // Verbose tells knit to log more output Verbose bool `yaml:"verbose"` } type Knit ¶ type Knit interface { ProcessText(text string) (string, error) ProcessFile(filepath string) (bool, error) } func New ¶ func New(cfg *Config) Knit Source Files ¶ View all Source files knit.go Click to show internal directories. Click to hide internal directories.