Versions in this module Expand all Collapse all v0 v0.0.5 Oct 31, 2016 Changes in this version + const BestCompression + const BestSpeed + const ConstantCompression + const DefaultCompression + const NoCompression + const Version + var Charset = "utf-8" + var DefaultUpdaterAlreadyInstalledMessage = "\nThe latest version '%s' was already installed." + var DefaultUpdaterYesInput = [...]string + var PathSeparator = string(os.PathSeparator) + var StaticCacheDuration = 20 * time.Second + var TimeFormat = "Mon, 02 Jan 2006 15:04:05 GMT" + func AcquireGzipWriter(w io.Writer) *gzip.Writer + func CopyDir(source string, dest string) (err error) + func CopyFile(source string, destination string) error + func DirHandler(dir string, strippedPrefix string) http.Handler + func DirectoryExists(dir string) bool + func DownloadZip(zipURL string, newDir string, showOutputIndication bool) (string, error) + func FaviconHandler(favPath string) http.Handler + func GetHomePath() string + func GetParentDir(targetDirectory string) string + func Install(remoteFileZip string, targetDirectory string, showOutputIndication bool) (installedDirectory string, err error) + func ReleaseGzipWriter(gzipWriter *gzip.Writer) + func RemoveFile(filePath string) error + func RenameDir(oldPath string, newPath string) error + func SendStaticFileHandler(filename string) http.Handler + func ShowIndicator(wr io.Writer, newLine bool) chan bool + func StaticContentHandler(data []byte, contentType string) http.Handler + func StaticFileHandler(filename string) http.Handler + func TypeByExtension(fullfilename string) (t string) + func Unzip(archive string, target string) (string, error) + func WriteGzip(w io.Writer, b []byte) (int, error) + type GzipPool struct + Level int + func DefaultGzipPool() *GzipPool + func NewGzipPool(Level int) *GzipPool + func (p *GzipPool) AcquireGzipWriter(w io.Writer) *gzip.Writer + func (p *GzipPool) ReleaseGzipWriter(gzipWriter *gzip.Writer) + func (p *GzipPool) WriteGzip(w io.Writer, b []byte) (int, error) + type Installer struct + Indicator bool + InstallDir string + RemoteFiles []string + func NewInstaller(installDir string, remoteFilesZip ...string) *Installer + func (i *Installer) Add(remoteFilesZip ...string) + func (i *Installer) Install() ([]string, error) + type OptionSet func(*Options) + func Silent(val bool) OptionSet + func Stderr(val io.Writer) OptionSet + func Stdin(val io.Reader) OptionSet + func Stdout(val io.Writer) OptionSet + func (o OptionSet) Set(main *Options) + type Options struct + Silent bool + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + func (o *Options) Set(main *Options) + type Updater struct + func GetUpdater(owner string, repo string, currentReleaseVersion string) (*Updater, error) + func (u *Updater) HasUpdate() (bool, string) + func (u *Updater) Run(setters ...optionSetter) bool