Documentation
¶
Index ¶
- Variables
- func BrowserFlow(opts BrowserFlowOptions) error
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) (int64, error)
- func Exists(fn string) bool
- func ListDir(dir string) ([]string, error)
- func Pluralize(count int, singular string, plural string) string
- func RandStringBytes(n int) string
- func SafeFilename(name string) string
- func ZipDir(dir string, outfilename string, opts ...ZipDirCallbackMatcher) error
- type APIClient
- type BrowserFlowOptions
- type ZipDirCallbackMatcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("timeout")
Functions ¶
func BrowserFlow ¶
func BrowserFlow(opts BrowserFlowOptions) error
BrowserFlow will open a browser and wait for the user to finish the flow. It will return an error if the flow times out with an ErrTimeout error. It will return an error if the callback fails or any other error occurs.
func RandStringBytes ¶
RandStringBytes will generate a random string of length n using the alphaNumChars string.
func SafeFilename ¶ added in v0.0.23
Types ¶
type BrowserFlowOptions ¶
Click to show internal directories.
Click to hide internal directories.