Add `arrayOrMap` result description

Explain `Result.Value` will return array and map when possible.
This commit is contained in:
hbc 2018-02-28 11:21:22 +08:00 committed by GitHub
parent 01f00f1296
commit 93d61e6369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -583,6 +583,8 @@ func (t Result) Exists() bool {
// Number, for JSON numbers
// string, for JSON string literals
// nil, for JSON null
// map[string]interface{}, for JSON objects
// []interface{}, for JSON arrays
//
func (t Result) Value() interface{} {
if t.Type == String {