handler.go 147 B

12345678910
  1. package mtool
  2. type Handler interface {
  3. Handle(*Flags)
  4. }
  5. type HandlerFunc func(*Flags)
  6. func (fn HandlerFunc) Handle(flags *Flags) {
  7. fn(flags)
  8. }