options

package
v0.0.0-...-b23db3a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	Apply(*Options)
}

type Options

type Options struct {
	Format              format.Format
	Dialect             format.Dialect
	CopyBookFiles       []string
	CopyBookDirectories []string
	CopyBookExtensions  []string
}

func NewOptions

func NewOptions() (o *Options)

func (*Options) AddCopyBookDirectory

func (o *Options) AddCopyBookDirectory(f string) *Options

func (*Options) AddCopyBookExtension

func (o *Options) AddCopyBookExtension(f string) *Options

func (*Options) AddCopyBookFile

func (o *Options) AddCopyBookFile(f string) *Options

func (*Options) Apply

func (o *Options) Apply(c *Options)

func (*Options) SetDialect

func (o *Options) SetDialect(d format.Dialect) *Options

func (*Options) SetFormat

func (o *Options) SetFormat(f format.Format) *Options

Jump to

Keyboard shortcuts

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