service

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Init(components []component.Component, override bool)
	Implement(input string, output string) error
}

func New

func New() Service

type WriteOpt added in v0.0.4

type WriteOpt struct {
	Override    bool // If true, existing files will be overridden. Default is false.
	IgnoreEmpty bool // If true, empty files will not be written. Default is true.
}

type WriteOption added in v0.0.4

type WriteOption func(*WriteOpt)

func WithIgnoreEmpty added in v0.0.4

func WithIgnoreEmpty(b bool) WriteOption

func WithOverride added in v0.0.4

func WithOverride(b bool) WriteOption

type Writer added in v0.0.4

type Writer struct{}

func NewWriter added in v0.0.4

func NewWriter() *Writer

func (*Writer) WriteFile added in v0.0.4

func (w *Writer) WriteFile(file string, data []byte, opts ...WriteOption) error

type WriterSrv added in v0.0.4

type WriterSrv interface {
	WriteFile(file string, data []byte, opts ...WriteOption) error
}

Jump to

Keyboard shortcuts

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