exlib

package
v0.0.0-...-5fc50ce Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package exlib contains common library code for the examples.

Index

Constants

This section is empty.

Variables

View Source
var Before = 5 * time.Minute

Before set to 5 minutes; certificates will attempt to auto-update 5 minutes before they expire.

Functions

func Err

func Err(exit int, err error, format string, a ...interface{})

Err displays a formatting error message to standard error, appending the error string, and exits with the status code from `exit`, à la err(3).

func Errx

func Errx(exit int, format string, a ...interface{})

Errx displays a formatted error message to standard error and exits with the status code from `exit`, à la errx(3).

func Pack

func Pack(w io.Writer, buf []byte) error

Pack writes a message to an io.Writer.

func Unpack

func Unpack(r io.Reader) ([]byte, error)

Unpack reads a message from an io.Reader.

func Warn

func Warn(err error, format string, a ...interface{}) (int, error)

Warn displays a formatted error message to standard output, appending the error string, à la warn(3).

Types

This section is empty.

Jump to

Keyboard shortcuts

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