Skip to content

Commit 6723f50

Browse files
committed
Update README.md files
1 parent e6f5d00 commit 6723f50

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# Go DDP Server
1+
# Go DDP
22

3+
DDP server and client implemented with go.
34

4-
## Example
5+
## Server Example
56

67
```go
78
package main

client/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Go DDP Client
2+
3+
DDP client implemented with go.

server/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Go DDP Server
2+
3+
DDP server implemented with go.
4+
5+
## Example
6+
7+
```go
8+
package main
9+
10+
import (
11+
"github.com/meteorhacks/goddp/server"
12+
)
13+
14+
func main() {
15+
server := server.New()
16+
server.Method("hello", methodHandler)
17+
server.Listen(":1337")
18+
}
19+
20+
func methodHandler(p []interface{}) (interface{}, error) {
21+
return "result", nil
22+
}
23+
```

0 commit comments

Comments
 (0)