Documentation
¶
Overview ¶
Copyright Consensys Software Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map provides a wrapper around a map holding arbitrary values which supports introspection. It just provides an easy way to work with structured data, such as from JSON files.
func FromJsonBytes ¶
FromJsonBytes attempts to construct a map from an array of JSON formatted bytes.
func (*Map) Map ¶
Map attempts to retrieve an item from the map as a string. This can fail in two ways: either no such item exists; or, an item exists but has the wrong type.
func (*Map) String ¶
String attempts to retrieve an item from the map as a string. This can fail in two ways: either no such item exists; or, an item exists but has the wrong type.
func (*Map) ToJsonBytes ¶
ToJsonBytes converts this map into an array of JSON formatted bytes, or returns an error.