util

package
v0.0.0-...-2826bdd Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package untar untars a tarball to disk.

Index

Constants

This section is empty.

Variables

View Source
var Domain string
View Source
var GoSrc string
View Source
var Repo string

Functions

func CancelWhenSignaled

func CancelWhenSignaled(parent context.Context) context.Context

func CheckInstall

func CheckInstall()

func DoCmd

func DoCmd(cmd string, args ...string)

func GetCopyright

func GetCopyright(file string) string

func GetDomain

func GetDomain() string

func Untar

func Untar(r io.Reader, dir string) error

Untar reads the gzip-compressed tar file from r and writes it into dir.

func WriteIfNotFound

func WriteIfNotFound(path, templateName, templateValue string, data interface{}) bool

writeIfNotFound returns true if the file was created and false if it already exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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