file_handler

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHandler

type FileHandler struct {
	Id    string
	Name  string
	Type  string
	Tags  []string
	Lines []string
	// contains filtered or unexported fields
}

func New

func New(file_path, file_name string) *FileHandler

func NewFromFile

func NewFromFile(file_path string) *FileHandler

func (*FileHandler) Body

func (f *FileHandler) Body() string

func (*FileHandler) Delete

func (f *FileHandler) Delete() error

func (*FileHandler) Exists

func (f *FileHandler) Exists() bool

func (*FileHandler) Load

func (f *FileHandler) Load() error

func (*FileHandler) MakeTempFile

func (f *FileHandler) MakeTempFile(ext string) *FileHandler

func (*FileHandler) Path

func (f *FileHandler) Path() string

func (*FileHandler) Rename

func (f *FileHandler) Rename(new_name string) error

func (*FileHandler) Save

func (f *FileHandler) Save(skipHeader bool) error

func (*FileHandler) WriteHeader

func (f *FileHandler) WriteHeader() error

Jump to

Keyboard shortcuts

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