go语言之tcp客户端和服务端

在这里插入图片描述
客户端:

package main

import (
	"bufio"
	"fmt"
	"net"
	"os"
	"strings"
)

func main() {
   
    
    
	conn, _ := net.Dial("tcp", "192.168.0.100:6320") //连接到服务器

猜你喜欢

转载自blog.csdn.net/qq_45662588/article/details/133439983