package
Version:
v2.0.0+incompatible
Opens a new window with list of versions in this module.
Published: Apr 15, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package testutil provides some utility functions for Go tests.
func Dwimjs(x interface{}) interface{}
Dwimjs, when given a string or bytes, parses that data as JSON.
When given anything else, just returns what's given.
See https://en.wikipedia.org/wiki/DWIM.
JS renders its argument as JSON or as a string indicating an error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.