util

package
v0.0.0-...-04c6e67 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteURL

func AbsoluteURL(rawurl, ref string) (string, error)

AbsoluteURL returns the absolute URL of ref in the context of rawurl.

func AddPathPrefix

func AddPathPrefix(prefix string, files ...string) []string

AddPathPrefix adds the prefix to all pathname.

func CleanName

func CleanName(filename string) string

func CreateTarball

func CreateTarball(pathname string, files ...string) error

CreateTarball creates a new tarball at pathname location with all the given filepaths.

func Filter

func Filter(vs []string, f func(string) bool) []string

func SplitFilename

func SplitFilename(filename string) (name string, ext string)

SplitFilename splits a filename in two parts: the name and the file extension.

Types

This section is empty.

Jump to

Keyboard shortcuts

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