package
Version:
v0.30.0
Opens a new window with list of versions in this module.
Published: May 8, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Error is an implementation for the error interface that allow you to declare exported globals with the `const` keyword.
TL;DR:
const ErrSomething errs.Error = "something is an error"
Error implement the error interface
package main
import (
"github.com/adamluzsi/frameless/consterror"
)
func main() {
const ErrSomething consterror.Error = "something is an error"
}
Output:
Source Files
¶
Click to show internal directories.
Click to hide internal directories.