Skip to content

Commit

Permalink
目录替换
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赛 committed Dec 19, 2018
1 parent 5021c03 commit 23f3c1c
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 33 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
Light-weight TCP Asynchronous gOlang framework
轻量级TCP异步框架,Go语言实现 1.6.0

[![GitHub stars](https://img.shields.io/github/stars/json7/swt.svg)](https://github.com/json7/swt/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/json7/swt.svg)](https://github.com/json7/swt/network)
[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/json7/swt/master/LICENSE)
[![GoDoc](https://godoc.org/github.com/json7/swt?status.svg)](http://godoc.org/github.com/json7/swt)
[![GitHub stars](https://img.shields.io/github/stars/json7/stw.svg)](https://github.com/json7/stw/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/json7/stw.svg)](https://github.com/json7/stw/network)
[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/json7/stw/master/LICENSE)
[![GoDoc](https://godoc.org/github.com/json7/stw?status.svg)](http://godoc.org/github.com/json7/stw)

## Requirements

* Golang 1.9 and above

## Installation

`go get -u -v github.com/json7/swt`
`go get -u -v github.com/json7/stw`

## Usage

Expand All @@ -28,8 +28,8 @@ import (
"net"

"github.com/json7/holmes"
"github.com/json7/swt"
"github.com/json7/swt/examples/chat"
"github.com/json7/stw"
"github.com/json7/stw/examples/chat"
)

// ChatServer is the chatting server.
Expand Down
2 changes: 1 addition & 1 deletion concurrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AtomicBoolean
ConcurrentMap
*/

package tao
package stw

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tao
package stw

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion defs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tao
package stw

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Package tao implements a light-weight TCP network programming framework.
package stw implements a light-weight TCP network programming framework.
Server represents a TCP server with various ServerOption supported.
Expand Down Expand Up @@ -55,4 +55,4 @@ TimingWheel is a safe timer for running timed callbacks on connection.
WorkerPool is a go-routine pool for running message handlers, you can fetch one
by calling func WorkerPoolInstance() *WorkerPool.
*/
package tao
package stw
2 changes: 1 addition & 1 deletion examples/chat/chat_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/leesper/holmes"
"github.com/json7/swt"
"github.com/json7/stw"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions examples/chat/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net"
"os"
"github.com/leesper/holmes"
"github.com/json7/swt"
"github.com/json7/swt/examples/chat"
"github.com/json7/stw"
"github.com/json7/stw/examples/chat"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/chat/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"syscall"

"github.com/leesper/holmes"
"github.com/json7/swt"
"github.com/json7/swt/examples/chat"
"github.com/json7/stw"
"github.com/json7/stw/examples/chat"
)

// ChatServer is the chatting server.
Expand Down
4 changes: 2 additions & 2 deletions examples/echo/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"time"

"github.com/leesper/holmes"
"github.com/json7/swt"
"github.com/json7/swt/examples/echo"
"github.com/json7/stw"
"github.com/json7/stw/examples/echo"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/echo_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/leesper/holmes"
"github.com/json7/swt"
"github.com/json7/stw"
)

// Message defines the echo message.
Expand Down
4 changes: 2 additions & 2 deletions examples/echo/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"syscall"

"github.com/leesper/holmes"
"github.com/json7/swt"
"github.com/json7/swt/examples/echo"
"github.com/json7/stw"
"github.com/json7/stw/examples/echo"
)

// EchoServer represents the echo server.
Expand Down
4 changes: 2 additions & 2 deletions examples/pingpong/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"

"github.com/leesper/holmes"
"github.com/json7/swt"
"github.com/json7/swt/examples/pingpong"
"github.com/json7/stw"
"github.com/json7/stw/examples/pingpong"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion examples/pingpong/pingpong_message.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package pingpong

import "github.com/json7/swt"
import "github.com/json7/stw"

const (
// PingPontMessage defines message number.
Expand Down
4 changes: 2 additions & 2 deletions examples/pingpong/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"runtime"

"github.com/leesper/holmes"
"github.com/json7/swt"
"github.com/json7/swt/examples/pingpong"
"github.com/json7/stw"
"github.com/json7/stw/examples/pingpong"
)

// PingPongServer defines pingpong server.
Expand Down
2 changes: 1 addition & 1 deletion examples/timer/time_display.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"time"

"github.com/json7/swt"
"github.com/json7/stw"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tao
package stw

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion metrics.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tao
package stw

import (
"expvar"
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tao
package stw

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion timer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tao
package stw

import (
"container/heap"
Expand Down
2 changes: 1 addition & 1 deletion workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// each client's message handler is permanently hashed into one specified
// worker to execute, so it is in-order for each client's perspective.

package tao
package stw

import (
"time"
Expand Down

0 comments on commit 23f3c1c

Please sign in to comment.