Documentation
¶
Index ¶
- type FileHandler
- func (f *FileHandler) Body() string
- func (f *FileHandler) Delete() error
- func (f *FileHandler) Exists() bool
- func (f *FileHandler) Load() error
- func (f *FileHandler) MakeTempFile(ext string) *FileHandler
- func (f *FileHandler) Path() string
- func (f *FileHandler) Rename(new_name string) error
- func (f *FileHandler) Save(skipHeader bool) error
- func (f *FileHandler) WriteHeader() error
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
Click to show internal directories.
Click to hide internal directories.