Skip to content

kyawmyintthein/goerror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

goerror

Create error type with custom message template.

Usage

template := goerror.NewTemplate("Required", `"{{attr}}" is required. {{attr}} should not be blank.`)
data := map[string]interface{}{"attr": "user.Name"}
err := newTempl.DefaultError(data)

About

Custom error message template for golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages