for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
/**
* @author : Jagepard <[email protected]>
* @license https://mit-license.org/ MIT
*/
package main
import "fmt"
// ErrorHandler is ...
type ErrorHandler struct {
name string
next HandlerInterface
}
func (E *ErrorHandler) execute() {
fmt.Println(E.name)
if E.next != nil {
E.next.execute()
func (E *ErrorHandler) setNext(next HandlerInterface) {
E.next = next