File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 7
7
package main
8
8
9
9
import (
10
- " github.com/meteorhacks/goddp/server "
10
+ " github.com/meteorhacks/goddp"
11
11
)
12
12
13
13
func main () {
14
- server := server. New ()
14
+ server := goddp. NewServer ()
15
15
server.Method (" hello" , methodHandler)
16
16
server.Listen (" :1337" )
17
17
}
Original file line number Diff line number Diff line change 1
1
package client
2
+
3
+ type Client struct {
4
+ }
5
+
6
+ func New () Client {
7
+ client := Client {}
8
+ return client
9
+ }
Original file line number Diff line number Diff line change
1
+ package goddp
2
+
3
+ import (
4
+ "github.com/meteorhacks/goddp/client"
5
+ "github.com/meteorhacks/goddp/server"
6
+ )
7
+
8
+ func NewClient () client.Client {
9
+ return client .New ()
10
+ }
11
+
12
+ func NewServer () server.Server {
13
+ return server .New ()
14
+ }
You can’t perform that action at this time.
0 commit comments