client/vendor/github.com/json-iterator/go
Roland Huß b4b254f64c feature(service describe): Output of service details (#252)
* feature(service describe): Output of service details

`kn service show` mimics `kubectl describe <sth>` as that it output detail information in human readable output.

A future extension should add machine readable output with `-o` to export
a single object in json/yaml (that is missing from `kn service list`)

This command shows information about the service itself, but also a summary about the associated revisions.

It also knows about scaling and concurrency options.

Options:

`--details`    : Print more information. By default only are shorter summary is shown

* chore: Cleanup up and refreshed dependencies

* fix(service describe): Integration test fix (revert "show" to "describe")

* fix: go.sum

* fix go.sum

* feature(service describe): Add printing of resources (requests/limits) + machine readable output with -o

* chore(service describe): Simplified digest handling

* chore(service describe): Sort maps by key when printed

* chore: Adapt mock framework

* chore(service describe): Test fixes

* chore: Added some tests

* more tests

* test: Moar tests

* chore: Even moar tests

* more, more tests

* changelog update

* fix(service describe): golint fixes
2019-08-08 08:23:56 -07:00
..
.codecov.yml Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
.gitignore Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
.travis.yml Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
Gopkg.lock Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
Gopkg.toml Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
LICENSE Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
README.md chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
adapter.go feature(service describe): Output of service details (#252) 2019-08-08 08:23:56 -07:00
any.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
any_array.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_bool.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_float.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_int32.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_int64.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_invalid.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_nil.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_number.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_object.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_str.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_uint32.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_uint64.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
build.sh Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
config.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
fuzzy_mode_convert_table.md Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
go.mod feature(service describe): Output of service details (#252) 2019-08-08 08:23:56 -07:00
go.sum feature(service describe): Output of service details (#252) 2019-08-08 08:23:56 -07:00
iter.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_array.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_float.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
iter_int.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_object.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_skip.go feature(service describe): Output of service details (#252) 2019-08-08 08:23:56 -07:00
iter_skip_sloppy.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_skip_strict.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
iter_str.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
jsoniter.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
pool.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_array.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_dynamic.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_extension.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
reflect_json_number.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_json_raw_message.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_map.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
reflect_marshaler.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
reflect_native.go feature(service describe): Output of service details (#252) 2019-08-08 08:23:56 -07:00
reflect_optional.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_slice.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_struct_decoder.go feature(service describe): Output of service details (#252) 2019-08-08 08:23:56 -07:00
reflect_struct_encoder.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
stream.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
stream_float.go feature(service describe): Output of service details (#252) 2019-08-08 08:23:56 -07:00
stream_int.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
stream_str.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
test.sh Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00

README.md

Sourcegraph GoDoc Build Status codecov rcard License Gitter chat

A high-performance 100% compatible drop-in replacement of "encoding/json"

You can also use thrift like JSON using thrift-iterator

Benchmark

benchmark

Source code: https://github.com/json-iterator/go-benchmark/blob/master/src/github.com/json-iterator/go-benchmark/benchmark_medium_payload_test.go

Raw Result (easyjson requires static code generation)

ns/op allocation bytes allocation times
std decode 35510 ns/op 1960 B/op 99 allocs/op
easyjson decode 8499 ns/op 160 B/op 4 allocs/op
jsoniter decode 5623 ns/op 160 B/op 3 allocs/op
std encode 2213 ns/op 712 B/op 5 allocs/op
easyjson encode 883 ns/op 576 B/op 3 allocs/op
jsoniter encode 837 ns/op 384 B/op 4 allocs/op

Always benchmark with your own workload. The result depends heavily on the data input.

Usage

100% compatibility with standard lib

Replace

import "encoding/json"
json.Marshal(&data)

with

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

var json = jsoniter.ConfigCompatibleWithStandardLibrary
json.Marshal(&data)

Replace

import "encoding/json"
json.Unmarshal(input, &data)

with

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

var json = jsoniter.ConfigCompatibleWithStandardLibrary
json.Unmarshal(input, &data)

More documentation

How to get

go get github.com/json-iterator/go

Contribution Welcomed !

Contributors

Report issue or pull request, or email taowen@gmail.com, or Gitter chat