package mtool type Handler interface { Handle(*Flags) } type HandlerFunc func(*Flags) func (fn HandlerFunc) Handle(flags *Flags) { fn(flags) }