utils

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager

type DefaultManager struct {
	// contains filtered or unexported fields
}

DefaultManager -

func (*DefaultManager) FileOrDirectoryExists added in v0.0.53

func (m *DefaultManager) FileOrDirectoryExists(path string) bool

FileOrDirectoryExists - checks if file exists

func (*DefaultManager) FindFiles

func (m *DefaultManager) FindFiles(configDir, pattern string) ([]string, error)

FindFiles -

func (*DefaultManager) LoadFile added in v0.0.13

func (m *DefaultManager) LoadFile(configFile string, dataType interface{}) error

LoadFile -

func (*DefaultManager) WriteFile added in v0.0.14

func (m *DefaultManager) WriteFile(configFile string, dataType interface{}) error

WriteFile -

func (*DefaultManager) WriteFileBytes added in v0.0.29

func (m *DefaultManager) WriteFileBytes(configFile string, data []byte) error

WriteFileBytes -

type Manager

type Manager interface {
	FindFiles(directoryName, pattern string) ([]string, error)
	LoadFile(configFile string, dataType interface{}) error
	WriteFile(configFile string, dataType interface{}) error
	WriteFileBytes(configFile string, data []byte) error
	FileOrDirectoryExists(path string) bool
}

Manager -

func NewDefaultManager

func NewDefaultManager() (mgr Manager)

NewDefaultManager -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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