json

package module
v0.0.0-...-1e6d944 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: Unlicense Imports: 0 Imported by: 0

README

go-json

Improve the way of creating JSON data structures in Go. I use it heavily when writing queries for ElasticSearch.

import . "github.com/pakohan/go-json"

…

	obj := O{
		"nested": O{
			"key1":         "test",
			"key2":         O{"anotherKey": "value"},
			"uselessArray": A{"A", "B", "C"},
		},
	}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A []interface{}

A is a JSON array

type O

type O map[string]interface{}

O is a JSON object

Jump to

Keyboard shortcuts

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