Documentation ¶
Index ¶
- Variables
- func GetVersion() string
- func SelfDir() string
- type SuperAgent
- func (s *SuperAgent) End() []error
- func (s *SuperAgent) LoadData(data []byte, ext string, object interface{}) *SuperAgent
- func (s *SuperAgent) LoadFile(name string, object interface{}) *SuperAgent
- func (s *SuperAgent) SetLogger(logger *log.Logger) *SuperAgent
- func (s *SuperAgent) SetPath(dir string) *SuperAgent
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Cwd string
)
View Source
var (
Version = "0.1.0"
)
Functions ¶
func GetVersion ¶
func GetVersion() string
Types ¶
type SuperAgent ¶
type SuperAgent struct { Debug bool Env string Path string Errors []error // contains filtered or unexported fields }
A SuperAgent is a object storing all request data for client.
func New ¶
func New(dir string) *SuperAgent
func (*SuperAgent) End ¶
func (s *SuperAgent) End() []error
func (*SuperAgent) LoadData ¶
func (s *SuperAgent) LoadData(data []byte, ext string, object interface{}) *SuperAgent
func (*SuperAgent) LoadFile ¶
func (s *SuperAgent) LoadFile(name string, object interface{}) *SuperAgent
func (*SuperAgent) SetLogger ¶
func (s *SuperAgent) SetLogger(logger *log.Logger) *SuperAgent
func (*SuperAgent) SetPath ¶
func (s *SuperAgent) SetPath(dir string) *SuperAgent
Click to show internal directories.
Click to hide internal directories.