buf: github.com/bufbuild/buf/internal/pkg/stringjson Index | Files

package stringjson

import "github.com/bufbuild/buf/internal/pkg/stringjson"

Index

Package Files

stringjson.go

func Print Uses

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

Print prints the object.

func Println Uses

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

Println prints the object with a newline.

type Object Uses

type Object interface {
    fmt.Stringer
    json.Marshaler
}

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

Package stringjson imports 3 packages (graph). Updated 2020-07-11. Refresh now. Tools for package owners.