pkg

module
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: LGPL-3.0

README

Packages for Go

GoDoc

This repository contains small, general purpose utility packages for Go. Its structure and content are inspired by https://github.com/pkg . As a guideline for inclusion in this repository, packages should only depend upon the standard library, golang.org/x packages, and other packages in this repository.

Overview

  • stdinprompt — prompts users that we are awaiting data on stdin.
  • writefile — idiomatic Unix file writing (tmpfile, rename into place once synced, dereference symlinks).
  • byteio — byte-oriented I/O adapters, and simple binary read/write functions. Useful if you are reading and writing lots of small values.
  • versionsort — simple version sort akin to C's versionsort(3).

Directories

Path Synopsis
Package byteio supports applications that perform byte-oriented I/O, reading and writing only small chunks at a time.
Package byteio supports applications that perform byte-oriented I/O, reading and writing only small chunks at a time.
Package stdinprompt provides an io.Reader that will prompt the user if nothing is read within a short period of time.
Package stdinprompt provides an io.Reader that will prompt the user if nothing is read within a short period of time.
Package versionsort implements a version-aware lexicographical sort.
Package versionsort implements a version-aware lexicographical sort.
Package writefile provides simple support routines for writing data to a temporary file before renaming it into place.
Package writefile provides simple support routines for writing data to a temporary file before renaming it into place.

Jump to

Keyboard shortcuts

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