Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/walkersumida/prettyout


https://github.com/walkersumida/prettyout

go golang

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# prettyout

## Installation

```shell
go get -u github.com/walkersumida/prettyout
```

## Usage

```go
package jaker

import (
"testing"

p "github.com/walkersumida/prettyout" // <- add
)

func TestProfile(t *testing.T) {
t.Run("english fullname", func(t *testing.T) {
expected := "Walker Sumida"
got := "ウォーカー スミダ"
if got != expected {
t.Errorf(p.Serror(expected, got)) // <- call
}
})
}
```

```
=== RUN TestProfile/english_fullname
jaker_test.go:15:
-expected +got:
  string(
-  "Walker Sumida",
+  "ウォーカー スミダ",
  )
--- FAIL: TestProfile (0.00s)
--- FAIL: TestProfile/english_fullname (0.00s)
```