wollemi

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool added in v0.4.0

func Bool(value bool) *bool

Types

type Config added in v0.4.0

type Config struct {
	Gofmt                     Gofmt             `json:"gofmt,omitempty"`
	DefaultVisibility         string            `json:"default_visibility,omitempty"`
	KnownDependency           map[string]string `json:"known_dependency,omitempty"`
	AllowUnresolvedDependency *optional.Bool    `json:"allow_unresolved_dependency,omitempty"`
	ExplicitSources           *optional.Bool    `json:"explicit_sources,omitempty"`
}

func (Config) Merge added in v0.4.0

func (this Config) Merge(that Config) Config

type Filesystem

type Filesystem interface {
	Stat(string) (os.FileInfo, error)
	Lstat(string) (os.FileInfo, error)
	Config(string) Config
	Walk(string, filepath.WalkFunc) error
	ReadAll(*bytes.Buffer, string) error
	ReadDir(string) ([]os.FileInfo, error)
	Readlink(string) (string, error)
	Symlink(string, string) error
	RemoveAll(string) error
	Remove(string) error
	MkdirAll(string, os.FileMode) error
}

type Gofmt added in v0.4.0

type Gofmt struct {
	Rewrite *bool       `json:"rewrite,omitempty"`
	Create  gofmtCreate `json:"create,omitempty"`
	Manage  gofmtManage `json:"manage,omitempty"`
	Mapped  gofmtMapped `json:"mapped,omitempty"`
}

func (*Gofmt) GetCreate added in v0.4.0

func (gofmt *Gofmt) GetCreate() []string

func (*Gofmt) GetManage added in v0.4.0

func (gofmt *Gofmt) GetManage() []string

func (*Gofmt) GetMapped added in v0.4.0

func (gofmt *Gofmt) GetMapped(kind string) string

func (*Gofmt) GetRewrite added in v0.4.0

func (gofmt *Gofmt) GetRewrite() bool

Jump to

Keyboard shortcuts

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