goon

package module
v0.0.0-...-a1aa3d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package goon is a deep pretty printer with Go-like notation. It implements the goon specification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(d interface{}, query func(i interface{}) bool) map[interface{}]struct{}

All finds all instances of i that satisfy query within d.

func Dump

func Dump(a ...interface{}) (n int, err error)

Dump dumps goons to stdout.

func Fdump

func Fdump(w io.Writer, a ...interface{}) (n int, err error)

Fdump dumps goons to a writer.

func First

func First(d interface{}, query func(i interface{}) bool) interface{}

First finds the first instances of i that satisfies query within d.

func GetFuncValueSourceAsString

func GetFuncValueSourceAsString(fv reflect.Value) string

GetFuncValueSourceAsString returns the source of the func value fv.

func GetSourceAsString

func GetSourceAsString(f interface{}) string

GetSourceAsString returns the source of the func f.

func Sdump

func Sdump(a ...interface{}) string

Sdump dumps goons to a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL