Giter Club home page Giter Club logo

go-search's Introduction

go-search

Godoc.org via the command-line.

godoc command-line search

Installation

Via go-get or the binary releases.

$ go get github.com/tj/go-search

Usage

  • Add an alias: alias gos=go-search
  • Help text:
    $ go-search --help
    Usage:
        go-search <query>... [--top] [--count n] [--open]
        go-search -h | --help
        go-search --version
    
      Options:
        -n, --count n    number of results [default: 5]
        -t, --top        top-level packages only
        -o, --open       open godoc.org search results in default browser
        -h, --help       output help information
        -v, --version    output version
  • Examples:
    $ go-search UUID
    
        github.com/pborman/uuid
        godoc.org/pkg/github.com/pborman/uuid
        The uuid package generates and inspects UUIDs.
    
        github.com/satori/go.uuid
        godoc.org/pkg/github.com/satori/go.uuid
        Package uuid provides implementation of Universally Unique
        Identifier (UUID).
    
        github.com/nu7hatch/gouuid
        godoc.org/pkg/github.com/nu7hatch/gouuid
        This package provides immutable UUID structs and the
        functions NewV3, NewV4, NewV5 and Parse() for generating
        versions 3, 4 and 5 UUIDs as specified in RFC 4122.
    
        github.com/twinj/uuid
        godoc.org/pkg/github.com/twinj/uuid
        This package provides RFC4122 and DCE 1.1 UUIDs.
    
        github.com/docker/distribution/uuid
        godoc.org/pkg/github.com/docker/distribution/uuid
        Package uuid provides simple UUID generation.
    $ go-search UUID --open
    # opens godoc.org search results in default browser

Changelog

0.0.3

  • Default search results limit in terminal to 5. Users may still control the limit with -n.
  • Minor fixes.

0.0.2

  • Feature: open search results on godoc.org with --open.

0.0.1

  • Initial release.

License

MIT

go-search's People

Contributors

pbnj avatar tj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.