format

package
v0.0.0-...-b93a6bd Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package format includes useful functions for creating error messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Message

func Message(actual interface{}, message string, expected ...interface{}) string

Message returns a formatted error message.

func MessageWithDiff

func MessageWithDiff(actual, message, expected string) string

MessageWithDiff returns a formatted error message.

func Object

func Object(object interface{}, indentation uint) string

Object returns the object parameter as a formatted string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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