Skip to content

Commit 22ac72f

Browse files
author
Gabriel Cataldo
committed
Added formatted error functions and tests
Added new functions for formatted error creation: Newf and NewSkipCallerf in errors.go. These functions allow error messages with formatted strings. Cleaned up the message building functionality; separated message building from cleaning and formatting. Corresponding tests were also added in errors_test.go.
1 parent e88bfb3 commit 22ac72f

File tree

3 files changed

+263
-68
lines changed

3 files changed

+263
-68
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Go Errors Detail
33
<!--suppress ALL -->
44
<img align="right" src="gopher-debug.png" alt="">
55

6-
[![Project status](https://img.shields.io/badge/version-v1.2.0-vividgreen.svg)](https://github.com/GabrielHCataldo/go-errors/releases/tag/v1.2.0)
6+
[![Project status](https://img.shields.io/badge/version-v1.2.1-vividgreen.svg)](https://github.com/GabrielHCataldo/go-errors/releases/tag/v1.2.1)
77
[![Go Report Card](https://goreportcard.com/badge/github.com/GabrielHCataldo/go-errors)](https://goreportcard.com/report/github.com/GabrielHCataldo/go-errors)
88
[![Coverage Status](https://coveralls.io/repos/GabrielHCataldo/go-errors/badge.svg?branch=main&service=github)](https://coveralls.io/github/GabrielHCataldo/go-errors?branch=main)
99
[![Open Source Helpers](https://www.codetriage.com/gabrielhcataldo/go-errors/badges/users.svg)](https://www.codetriage.com/gabrielhcataldo/go-errors)

0 commit comments

Comments
 (0)