Skip to content

Commit

Permalink
Merge pull request #276 from aceld/feature/aceld
Browse files Browse the repository at this point in the history
note: go.1.16+ //go:build comment without // +build comment error. ne…
  • Loading branch information
aceld committed Sep 1, 2023
2 parents c18839b + 33bb1f6 commit 99358d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ Zinx框架的项目制作采用编码和学习教程同步进行,将开发的
[<Zinx的Tcp调试工具>](https://github.com/xxl6097/tcptest)

**版本**
Golang 1.16+
Golang 1.17+

DownLoad zinx Source

```bash
$go get github.com/aceld/zinx
```

> note: Golang Version 1.16+
> note: Golang Version 1.17+
#### Zinx-Server
```go
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ DownLoad zinx Source
$go get github.com/aceld/zinx
```

> note: Golang Version 1.16+
> note: Golang Version 1.17+
#### Zinx-Server
```go
Expand Down
2 changes: 1 addition & 1 deletion znet/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (s *Server) ListenTcpConn() {
// (阻塞等待客户端建立连接请求)
conn, err := listener.Accept()
if err != nil {
//Go 1.16+
//Go 1.17+
if errors.Is(err, net.ErrClosed) {
zlog.Ins().ErrorF("Listener closed")
return
Expand Down

0 comments on commit 99358d2

Please sign in to comment.