11 lines
147 B
Go
11 lines
147 B
Go
|
package mtool
|
||
|
|
||
|
type Handler interface {
|
||
|
Handle(*Flags)
|
||
|
}
|
||
|
|
||
|
type HandlerFunc func(*Flags)
|
||
|
func (fn HandlerFunc) Handle(flags *Flags) {
|
||
|
fn(flags)
|
||
|
}
|