Browse Source

Added the router functions.

master
Jeff Baskin 4 years ago
parent
commit
59490f163d
  1. 9
      router.go
  2. 14
      router_test.go

9
router.go

@ -0,0 +1,9 @@
// morethantext/proxy/router.go
package proxy
type router struct{}
func newRouter() *router {
return &router{}
}

14
router_test.go

@ -0,0 +1,14 @@
// morethantext/proxy/router_test.go
package proxy
import (
"testing"
)
func TestNewRouter(t *testing.T) {
router := newRouter()
if router == nil {
t.Error("newRouter did not return a valid router.")
}
}
Loading…
Cancel
Save