File tree Expand file tree Collapse file tree 9 files changed +12
-10
lines changed
Expand file tree Collapse file tree 9 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1- package main // import "go.zeta.pm/disguard"
1+ package disguard // import "go.zeta.pm/disguard"
22
33import (
44 "encoding/json"
Original file line number Diff line number Diff line change 1- package main // import "go.zeta.pm/disguard"
1+ package main // import "go.zeta.pm/disguard/cmd/disguard "
22
33import (
44 "io/ioutil"
55 "log"
66 "net/http"
77
88 "github.com/pressly/chi"
9+ "go.zeta.pm/disguard"
910 "gopkg.in/yaml.v2"
1011)
1112
@@ -14,13 +15,13 @@ func main() {
1415 if err != nil {
1516 log .Fatal (err )
1617 }
17- var conf Config
18+ var conf disguard. Config
1819 err = yaml .Unmarshal (in , & conf )
1920 if err != nil {
2021 log .Fatal (err )
2122 }
2223
23- sess := NewSessionRouter (& conf )
24+ sess := disguard . NewSessionRouter (& conf )
2425
2526 root := chi .NewRouter ()
2627 root .Route ("/oauth" , sess .Route )
Original file line number Diff line number Diff line change 1- package main // import "go.zeta.pm/disguard"
1+ package disguard // import "go.zeta.pm/disguard"
22
33type (
44 // Config ...
Original file line number Diff line number Diff line change 1- package main // import "go.zeta.pm/disguard"
1+ package disguard // import "go.zeta.pm/disguard"
22
33import (
44 "net/http"
Original file line number Diff line number Diff line change 11build :
2+ main : cmd/disguard/main.go
23 binary_name : disguard
34 goos :
45 - windows
Original file line number Diff line number Diff line change 1- package main // import "go.zeta.pm/disguard"
1+ package disguard // import "go.zeta.pm/disguard"
22
33// Guild mini-container, we only care about ID.
44type Guild struct {
Original file line number Diff line number Diff line change 1- package main // import "go.zeta.pm/disguard"
1+ package disguard // import "go.zeta.pm/disguard"
22
33import (
44 "fmt"
Original file line number Diff line number Diff line change 1- package main // import "go.zeta.pm/disguard"
1+ package disguard // import "go.zeta.pm/disguard"
22import (
33 "log"
44 "net/http"
Original file line number Diff line number Diff line change 1- package main // import "go.zeta.pm/disguard"
1+ package disguard // import "go.zeta.pm/disguard"
22
33// User struct
44type User struct {
You can’t perform that action at this time.
0 commit comments