knit

package
v0.6.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL