func Classic() *ClassicSpace { // Create a Ware. w := mw.New() s := New() p := s.Processor s.Map(w) w.MapTo(s.fs, (*Filesystem)(nil)) w.Use(Logger()) w.Use(build(s)) w.Action(p.Handle) return &ClassicSpace{s, w} }
func NewProcessor() *Processor { w := mw.New() p := &Processor{inject.New(), w, 0} p.Map(w) return p }