Back to godoc.org

Package stringjson

v0.20.5
Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module: github.com/bufbuild/buf

Index

func Print

func Print(writer io.Writer, object Object, asJSON bool) error

Print prints the object.

func Println

func Println(writer io.Writer, object Object, asJSON bool) error

Println prints the object with a newline.

type Object

type Object interface {
	fmt.Stringer
	json.Marshaler
}

Object is an object that can either be marshaled to string or JSON.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier