Go language tcp client and server

Insert image description here
Client:

package main

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

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

Guess you like

Origin blog.csdn.net/qq_45662588/article/details/133439983