util

package
v0.5.1-beta-hotfix1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandLineToArgv

func CommandLineToArgv(cmd string) ([]string, error)

func DeepCopy

func DeepCopy(src interface{}, dst interface{}) error

DeepCopy func

func NewSwitchableWriter

func NewSwitchableWriter(w io.Writer) *switchableWriter

func OpenUrl

func OpenUrl(url string) error

func ReadChecksumFile

func ReadChecksumFile(filepath string) ([]byte, error)

func Sha1SumOfFile

func Sha1SumOfFile(filepath string) ([]byte, error)

func UnmarshalValidJSON

func UnmarshalValidJSON(data []byte, v interface{}) error

UnmarshalValidJSON func

Types

type MimeDetectorWriter

type MimeDetectorWriter struct {
	MimeType *string
	// contains filtered or unexported fields
}

func (*MimeDetectorWriter) Close

func (m *MimeDetectorWriter) Close() error

func (*MimeDetectorWriter) Write

func (m *MimeDetectorWriter) Write(p []byte) (int, error)

type PanicData

type PanicData struct {
	PanicValue interface{}
	PanicTrace []byte
}

type UIStore

type UIStore interface {
	GetValueByReference(reference *string) (interface{}, error)
}

UIStore interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL