file

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceSections

func ReplaceSections(fl *File, tgt filesystem.FileLoader) error

Types

type File

type File struct {
	Path    []string    `json:"path,omitempty"`
	Name    string      `json:"name"`
	Mode    os.FileMode `json:"mode,omitempty"`
	Content string      `json:"-"`
	// contains filtered or unexported fields
}

func NewFile

func NewFile(path string, mode os.FileMode, b []byte, logger *zap.SugaredLogger) *File

func (*File) FullPath

func (f *File) FullPath() string

type Files

type Files []*File

func (Files) Exists

func (f Files) Exists(path string) bool

func (Files) Get

func (f Files) Get(path string) *File

func (Files) String

func (f Files) String() string

type Inheritiance

type Inheritiance struct {
	Prefix  string `json:"prefix"`
	Suffix  string `json:"suffix"`
	Content string `json:"content"`
}

func InheritanceContent

func InheritanceContent(fl *File) (*Inheritiance, error)

Jump to

Keyboard shortcuts

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