gojo

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 4 Imported by: 1

README

gojo Travis Build Status

Yet another Go implementation of jo.

Usage

 $ gojo foo=bar qux=quux
{"foo":"bar","qux":"quux"}
 $ gojo -p foo=bar qux=quux
{
  "foo": "bar",
  "qux": "quux"
}
 $ gojo -a foo bar baz
["foo","bar","baz"]
 $ seq 10 | gojo -a
[1,2,3,4,5,6,7,8,9,10]
 $ gojo -p foo=$(gojo bar=$(gojo baz=100))
{
  "foo": {
    "bar": {
      "baz": 100
    }
  }
}

Installation

Homebrew
 $ brew install itchyny/gojo/gojo
Build from source
 $ go get -u github.com/itchyny/gojo/cmd/gojo

Bug Tracker

Report bug at Issues・itchyny/gojo - GitHub.

Author

itchyny (https://github.com/itchyny)

License

This software is released under the MIT License, see LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gojo

type Gojo struct {
	// contains filtered or unexported fields
}

Gojo ...

func New

func New(opts ...Option) *Gojo

New Gojo

func (*Gojo) Apply

func (g *Gojo) Apply(opt Option)

Apply an Option

func (*Gojo) Run

func (g *Gojo) Run() error

Run ...

type Option

type Option func(*Gojo)

Option for Gojo

func Args

func Args(args []string) Option

Args ...

func Array

func Array() Option

Array ...

func OutStream

func OutStream(outStream io.Writer) Option

OutStream ...

func Pretty

func Pretty() Option

Pretty ...

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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