Documentation
¶
Index ¶
- func CommandLineToArgv(cmd string) ([]string, error)
- func DeepCopy(src interface{}, dst interface{}) error
- func ExpandDir(dir string) (string, error)
- func IsNetError(err error) bool
- func NewSwitchableWriter(w io.Writer) *switchableWriter
- func OpenUrl(url string) error
- func ReadChecksumFile(filepath string) ([]byte, error)
- func Sha1SumOfFile(filepath string) ([]byte, error)
- func UnmarshalValidJSON(data []byte, v interface{}) error
- type MimeDetectorWriter
- type PanicData
- type UIStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandLineToArgv ¶
func ExpandDir ¶
ExpandDir supoprts ~/ by now, the $HOME/dir1/dir2 is not suported check https://pkg.go.dev/os#ExpandEnv to add support to $HOME/dir/ expand
func IsNetError ¶
https://go.dev/src/syscall/zerrors_linux_amd64.go https://go.dev/src/syscall/zerrors_****.go
func NewSwitchableWriter ¶
func ReadChecksumFile ¶
func Sha1SumOfFile ¶
func UnmarshalValidJSON ¶
UnmarshalValidJSON func
Types ¶
type MimeDetectorWriter ¶
type MimeDetectorWriter struct { MimeType *string // contains filtered or unexported fields }
func (*MimeDetectorWriter) Close ¶
func (m *MimeDetectorWriter) Close() error
Click to show internal directories.
Click to hide internal directories.