Versions in this module Expand all Collapse all v0 v0.10.0 Dec 3, 2021 Changes in this version + const Version + const YearMonthLayout + func CreateDir(dirName string) (string, error) + func DefaultConfig(home string) + func ExactArgs(n int) cobra.PositionalArgs + func FileExists(path string) (bool, error) + func GetWorkingDirectory() string + func MinimumNArgs(n int) cobra.PositionalArgs + func NewHttpClient() *http.Client + func OpenOnDefaultApp(url string) error + func ParseFloat(value string) (float64, error) + func ParseInteger(strCode string, codeType string) (int, error) + func ParseProductCode(code string) (string, error) + func ParseYearMonth(yearMonth string) (time.Time, error) + func RangeArgs(min int, max int) cobra.PositionalArgs + func StringInList(str string, list []string) bool + func ToPrettyJson(body []byte) (string, error) + type HttpGetManager interface + Bytes func(url string) ([]byte, error) + PrettyJson func(url string) (string, error) + Type func(url string, target interface{}) error + func NewHttpGetManager() HttpGetManager + type HttpPostManager interface + Bytes func(url string, data []byte) ([]byte, error) + File func(remoteUrl string, directory string, filename string) (string, error) + FileWithDefaultName func(remoteUrl string, directory string) (string, error) + PrettyJson func(url string, data []byte) (string, error) + Zip func(remoteUrl string, directory string) (string, error) + func NewHttpPostManager() HttpPostManager + type SamHttpGetManager struct + func (s SamHttpGetManager) Bytes(url string) ([]byte, error) + func (s SamHttpGetManager) PrettyJson(url string) (string, error) + func (s SamHttpGetManager) Type(url string, target interface{}) error + type SamHttpPostManager struct + func (s SamHttpPostManager) Bytes(url string, data []byte) ([]byte, error) + func (s SamHttpPostManager) File(remoteUrl string, directory string, filename string) (string, error) + func (s SamHttpPostManager) FileWithDefaultName(remoteUrl string, directory string) (string, error) + func (s SamHttpPostManager) PrettyJson(url string, data []byte) (string, error) + func (s SamHttpPostManager) Zip(remoteUrl string, directory string) (string, error) + type SamTimeManager struct + func (SamTimeManager) Now() time.Time + type TimeManager interface + Now func() time.Time