Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.
/ consterr Public archive

A better way to implement constant errors in Go

License

Notifications You must be signed in to change notification settings

panux/consterr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consterr GoDocBuild StatusCoverage Status

A better way to implement constant errors in Go

Usage

Simply import the package and use consterr.Error as the type for your constants, assigning a string value. For example:

import "github.com/panux/consterr"
const (
	example consterr.Error = "Example error"
)

About

A better way to implement constant errors in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages