Documentation
¶
Index ¶
- Constants
- func BeQuiet()
- func Copy(dst io.Writer, src *os.File) func()
- func FD_ISSET(p *syscall.FdSet, fd int) bool
- func FD_SET(p *syscall.FdSet, fd int)
- func FirstNonBlank(candidates ...string) string
- func GetLocaleCharset(env map[string]string) string
- func IsUtf8Locale(env map[string]string) bool
- func Printf(s string, args ...interface{})
- func ReadLine() string
- func ReplaceWarningf(s string, args ...interface{})
- func Select(nfd int, r *syscall.FdSet, w *syscall.FdSet, e *syscall.FdSet, ...) error
- func Warningf(s string, args ...interface{})
- func WithSpinner(delay int, f func())
- type Config
- type ConfigAPI
- type ConfigFile
- type ConfigPlay
- type ConfigRecord
- type ConfigUser
- type UUID
Constants ¶
View Source
const ( DefaultAPIURL = "https://asciinema.org" DefaultCommand = "/bin/sh" )
Variables ¶
This section is empty.
Functions ¶
func FirstNonBlank ¶
func GetLocaleCharset ¶
func IsUtf8Locale ¶
func ReplaceWarningf ¶
func ReplaceWarningf(s string, args ...interface{})
func WithSpinner ¶
func WithSpinner(delay int, f func())
Types ¶
type Config ¶
type Config struct { File *ConfigFile Env map[string]string }
func (*Config) PlayMaxWait ¶
func (*Config) RecordCommand ¶
func (*Config) RecordMaxWait ¶
type ConfigFile ¶
type ConfigFile struct { API ConfigAPI Record ConfigRecord Play ConfigPlay User ConfigUser // old location of token }
type ConfigPlay ¶
type ConfigPlay struct {
MaxWait float64
}
type ConfigRecord ¶
type ConfigUser ¶
type ConfigUser struct {
Token string
}
Click to show internal directories.
Click to hide internal directories.