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"
// NoticeHandler is ...
type NoticeHandler struct {
name string
next HandlerInterface
}
func (N *NoticeHandler) execute() {
fmt.Println(N.name)
if N.next != nil {
N.next.execute()
func (N *NoticeHandler) setNext(next HandlerInterface) {
N.next = next