util

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 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 added in v1.15.1

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 added in v1.17.0

func Untar(r io.Reader, dir string, renderFunc map[string]func(reader io.Reader) io.Reader) 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