utils

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package utils provides misc. utility routines.

Index

Constants

View Source
const (
	// DirMode is the permissions used when making directories.
	DirMode = os.ModeDir | 0700

	// FileMode is the permissions used when making files.
	FileMode = 0600
)

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, v ...interface{})

Debugf logs at the debug level.

func DirExists

func DirExists(d string) bool

DirExists returns true if the path specified exists, and is a directory.

func FileExists

func FileExists(f string) bool

FileExists returns true if the path specified exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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