util

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Unlicense Imports: 2 Imported by: 1

Documentation

Overview

Package util contains utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(sa []string, s string) bool

ContainsString returns true, if the the string array sa contains the string s. Otherwise, it returns false.

func Fatal

func Fatal(err error)

Fatal prints err to stderr (prefixed with os.Args[0]) and exits the process with exit code 1.

Types

This section is empty.

Directories

Path Synopsis
Package ascii85 implements ascii85 encoding related utility functions.
Package ascii85 implements ascii85 encoding related utility functions.
Package base64 implements base64 encoding related utility functions.
Package base64 implements base64 encoding related utility functions.
Package bzero defines helper functions to zero sensitive memory.
Package bzero defines helper functions to zero sensitive memory.
Package cloudflare consumes the Cloudflare API (https://api.cloudflare.com/).
Package cloudflare consumes the Cloudflare API (https://api.cloudflare.com/).
Package def defines default values used in Codechain.
Package def defines default values used in Codechain.
Package file implements file related utility functions.
Package file implements file related utility functions.
Package git contains wrappers around some Git commands.
Package git contains wrappers around some Git commands.
Package gnumake contains wrappers around some GNU make commands.
Package gnumake contains wrappers around some GNU make commands.
Package hex implements hex encoding related utility functions.
Package hex implements hex encoding related utility functions.
Package home provides utility methods for application specific home directories.
Package home provides utility methods for application specific home directories.
Package homedir implements helper methods to get the home directories of various tools.
Package homedir implements helper methods to get the home directories of various tools.
Package interrupt allows to handle interrupts.
Package interrupt allows to handle interrupts.
Package lockfile implements a lock to limit a binary to one process per anchor file.
Package lockfile implements a lock to limit a binary to one process per anchor file.
Package log implements a minimal logging framework based on stdlib's log.
Package log implements a minimal logging framework based on stdlib's log.
Package seckey implements helper functions for secret key files.
Package seckey implements helper functions for secret key files.
Package terminal provides utility function to read from terminals.
Package terminal provides utility function to read from terminals.
Package time implements time related utility functions.
Package time implements time related utility functions.

Jump to

Keyboard shortcuts

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