erg

package module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 10 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

erg

Command line client for querying range servers.

Install

# OSX
brew tap square/self
brew install erg

erg --help

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Erg

type Erg struct {
	Sort bool
	// contains filtered or unexported fields
}

Erg type Sort boolean - turn it off/on for sorting on expand default is true

func New

func New(host string, port int) *Erg

New(address string) returns a new erg takes two arguments host - hostname default - localhost port - port default - 8080 ssl - use https or not default - false

func NewWithSsl

func NewWithSsl(host string, port int) *Erg

func (*Erg) Compress

func (*Erg) Compress(nodes []string) (result string)

Compress takes a slice of strings as argument and returns a compressed form.

func (*Erg) Expand

func (e *Erg) Expand(query string) (result []string, err error)

Expand takes a range expression as argument and returns an slice of strings as result err is set to nil on success

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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