From 23f3c1c04775f6511191b4600b831af24e4d0ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B5=9B?= Date: Wed, 19 Dec 2018 15:08:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++++++------- concurrent.go | 2 +- conn.go | 2 +- defs.go | 2 +- doc.go | 4 ++-- examples/chat/chat_message.go | 2 +- examples/chat/client/client.go | 4 ++-- examples/chat/server/server.go | 4 ++-- examples/echo/client/client.go | 4 ++-- examples/echo/echo_message.go | 2 +- examples/echo/server/server.go | 4 ++-- examples/pingpong/client/client.go | 4 ++-- examples/pingpong/pingpong_message.go | 2 +- examples/pingpong/server/server.go | 4 ++-- examples/timer/time_display.go | 2 +- message.go | 2 +- metrics.go | 2 +- server.go | 2 +- timer.go | 2 +- workers.go | 2 +- 20 files changed, 33 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 31cb3c6..325fb70 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@ 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 @@ -14,7 +14,7 @@ Light-weight TCP Asynchronous gOlang framework ## Installation -`go get -u -v github.com/json7/swt` +`go get -u -v github.com/json7/stw` ## Usage @@ -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. diff --git a/concurrent.go b/concurrent.go index c559232..58aa8c1 100644 --- a/concurrent.go +++ b/concurrent.go @@ -5,7 +5,7 @@ AtomicBoolean ConcurrentMap */ -package tao +package stw import ( "fmt" diff --git a/conn.go b/conn.go index b19812c..81af55d 100644 --- a/conn.go +++ b/conn.go @@ -1,4 +1,4 @@ -package tao +package stw import ( "context" diff --git a/defs.go b/defs.go index 3271237..f3cfcab 100644 --- a/defs.go +++ b/defs.go @@ -1,4 +1,4 @@ -package tao +package stw import ( "context" diff --git a/doc.go b/doc.go index a2486a6..eb00675 100644 --- a/doc.go +++ b/doc.go @@ -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. @@ -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 diff --git a/examples/chat/chat_message.go b/examples/chat/chat_message.go index 1b7bc34..46f231f 100644 --- a/examples/chat/chat_message.go +++ b/examples/chat/chat_message.go @@ -4,7 +4,7 @@ import ( "context" "github.com/leesper/holmes" - "github.com/json7/swt" + "github.com/json7/stw" ) const ( diff --git a/examples/chat/client/client.go b/examples/chat/client/client.go index 8349c52..c630c00 100644 --- a/examples/chat/client/client.go +++ b/examples/chat/client/client.go @@ -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() { diff --git a/examples/chat/server/server.go b/examples/chat/server/server.go index 25511b1..92f2f4f 100644 --- a/examples/chat/server/server.go +++ b/examples/chat/server/server.go @@ -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. diff --git a/examples/echo/client/client.go b/examples/echo/client/client.go index aafec27..ad0dd02 100644 --- a/examples/echo/client/client.go +++ b/examples/echo/client/client.go @@ -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() { diff --git a/examples/echo/echo_message.go b/examples/echo/echo_message.go index 5eb88ce..e833352 100644 --- a/examples/echo/echo_message.go +++ b/examples/echo/echo_message.go @@ -4,7 +4,7 @@ import ( "context" "github.com/leesper/holmes" - "github.com/json7/swt" + "github.com/json7/stw" ) // Message defines the echo message. diff --git a/examples/echo/server/server.go b/examples/echo/server/server.go index 962ec6a..d70a984 100644 --- a/examples/echo/server/server.go +++ b/examples/echo/server/server.go @@ -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. diff --git a/examples/pingpong/client/client.go b/examples/pingpong/client/client.go index d4cee63..04e1931 100644 --- a/examples/pingpong/client/client.go +++ b/examples/pingpong/client/client.go @@ -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 ( diff --git a/examples/pingpong/pingpong_message.go b/examples/pingpong/pingpong_message.go index 8cb6ecb..d81c6cb 100644 --- a/examples/pingpong/pingpong_message.go +++ b/examples/pingpong/pingpong_message.go @@ -1,6 +1,6 @@ package pingpong -import "github.com/json7/swt" +import "github.com/json7/stw" const ( // PingPontMessage defines message number. diff --git a/examples/pingpong/server/server.go b/examples/pingpong/server/server.go index 3c25741..8937147 100644 --- a/examples/pingpong/server/server.go +++ b/examples/pingpong/server/server.go @@ -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. diff --git a/examples/timer/time_display.go b/examples/timer/time_display.go index 8ac6f9d..470793d 100644 --- a/examples/timer/time_display.go +++ b/examples/timer/time_display.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/json7/swt" + "github.com/json7/stw" ) func main() { diff --git a/message.go b/message.go index 32afa78..b052dbd 100644 --- a/message.go +++ b/message.go @@ -1,4 +1,4 @@ -package tao +package stw import ( "bytes" diff --git a/metrics.go b/metrics.go index 2c2b6d1..c8a6b8a 100644 --- a/metrics.go +++ b/metrics.go @@ -1,4 +1,4 @@ -package tao +package stw import ( "expvar" diff --git a/server.go b/server.go index 8ab75a4..bce7ca0 100644 --- a/server.go +++ b/server.go @@ -1,4 +1,4 @@ -package tao +package stw import ( "context" diff --git a/timer.go b/timer.go index 161b36a..4a444a1 100644 --- a/timer.go +++ b/timer.go @@ -1,4 +1,4 @@ -package tao +package stw import ( "container/heap" diff --git a/workers.go b/workers.go index 3a0dac4..fb48f1e 100644 --- a/workers.go +++ b/workers.go @@ -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"