repr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 4 Imported by: 3

Documentation

Overview

Package repr is a library for generating string representations for values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map(w io.Writer, v reflect.Value)

Map writes a string repr of a map to the given io.Writer

func Repr

func Repr(o interface{}) string

Repr creates a string representation for the given value

func Slice

func Slice(w io.Writer, v reflect.Value)

Slice writes a string repr of a slice to the given io.Writer

func String

func String(w io.Writer, v reflect.Value)

String writes a string repr of a string to the given io.Writer

func Struct

func Struct(w io.Writer, v reflect.Value)

Struct writes a string repr of a struct to the given io.Writer

func Time

func Time(w io.Writer, v reflect.Value)

Time writes a string repr of a time.Time struct to the given io.Writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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