1 Star 0 Fork 0

nico / dchat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 388 Bytes
一键复制 编辑 原始数据 按行查看 历史
nico 提交于 2021-06-07 00:27 . rename
/**
2 * @Author: Nico
3 * @Date: 2021/5/23 17:08
4 */
package main
import (
"github.com/awesome-cmd/dchat/client"
"github.com/awesome-cmd/dchat/server"
"log"
"os"
)
func main() {
if len(os.Args) < 2 {
log.Fatal("please input chat -s or -c")
}
if os.Args[1] == "-s" {
server.Run()
}else if os.Args[1] == "-c" {
client.Run()
}else{
log.Fatal("-s or -c required")
}
}
1
https://gitee.com/ainilili/dchat.git
git@gitee.com:ainilili/dchat.git
ainilili
dchat
dchat
main

搜索帮助