util

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2017 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package util contains a few simple utilites that has no internal dependencies. This is to encourage reuse of code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(name string) func(string, ...interface{})

Debug will return a debug(format, arg, arg...) function for which messages will be printed if the DEBUG environment variable is set.

This is useful for development debugging only. Do not use this for messages that has any value in production.

func Download added in v0.0.7

func Download(url, destdir string) (string, error)

Download downloads the request file in the url

Types

This section is empty.

Jump to

Keyboard shortcuts

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