
go
文章平均质量分 73
码农的脚步
??????????
展开
-
go 语言 TCP服务器接受客户端字符串信息
func hand_conn(conn net.Conn) ([]byte){ defer conn.Close() //clientarr := conn.RemoteAddr() //获取连接到的对像的IP地址 result := bytes.NewBuffer(nil) var buf [512]byte for原创 2017-01-06 08:31:22 · 858 阅读 · 0 评论 -
go语言 mysql操作
import("fmt" "net" "strings" "database/sql" _ "github.com/go-sql-driver/mysql" "encoding/json" //"bytes" "bytes" "io" //"time" "t原创 2017-01-06 08:34:02 · 329 阅读 · 0 评论 -
go 语言 mongodb操作
import("fmt" "gopkg.in/mgo.v2" //"gopkg.in/mgo.v2/bson" "net" "bytes" "io" "strings" "time" "encoding/json" ) type Net_tcp_pt struct {原创 2017-01-06 08:54:59 · 472 阅读 · 0 评论 -
go 语言 web 开发和数据库查询
import ( "fmt" "net/http" "WebCommand/db" "log" )type Net_tcp_pt_v struct { Server_ip string Server_t string Address string State st原创 2017-01-06 09:09:13 · 727 阅读 · 0 评论