Skip to content

Commit

Permalink
moved examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed Jul 4, 2017
1 parent ceaaa74 commit 4b5991a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
language: go
script: go test
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func Serve(net, addr string,

## Example

Please check out the [examples](examples) subdirectory for a simplified [redis](examples/redis-server.go) clone and an [echo](examples/echo-server.go) server.
Please check out the [examples](examples) subdirectory for a simplified [redis](examples/redis-server/main.go) clone and an [echo](examples/echo-server/main.go) server.

Here's a basic echo server:

Expand Down Expand Up @@ -133,7 +133,7 @@ func ticker(ctx interface{}) (keepserving bool) {
Run the example:

```
$ go run examples/echo-server.go
$ go run examples/echo-server/main.go
```

Connect to the server:
Expand Down Expand Up @@ -162,7 +162,7 @@ GET: 1369863.00 requests per second
**Shiny**

```
$ go run examples/redis-server.go --port 6380 --appendonly no
$ go run examples/redis-server/main.go --port 6380 --appendonly no
```
```
redis-benchmark -p 6380 -t ping,set,get -q -P 128
Expand Down
4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## redis-server

```
go run examples/redis-server.go [--port int] [--appendonly yes/no]
go run examples/redis-server/main.go [--port int] [--appendonly yes/no]
```

- `GET`, `SET`, `DEL`, `QUIT`, `PING`, `SHUTDOWN` commands.
Expand All @@ -14,5 +14,5 @@ go run examples/redis-server.go [--port int] [--appendonly yes/no]
## echo-server

```
go run examples/echo-server.go [--port int]
go run examples/echo-server/main.go [--port int]
```
File renamed without changes.
File renamed without changes.

0 comments on commit 4b5991a

Please sign in to comment.