From 0f6c4c2f8a5f7a4988115d5f45f7674340b0b8f7 Mon Sep 17 00:00:00 2001
From: yyt030 <yyt030@gmail.com>
Date: Wed, 29 May 2024 23:49:50 +0800
Subject: [PATCH] fix:set Net

---
 golang/gorm/example.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/golang/gorm/example.go b/golang/gorm/example.go
index 4556d25..5abccfb 100644
--- a/golang/gorm/example.go
+++ b/golang/gorm/example.go
@@ -41,6 +41,7 @@ func main() {
 		User:   username,
 		Passwd: password,
 		DBName: database,
+		Net:    "tcp",
 		//TODO: set parameters
 	}
 	dial := mysql.New(mysql.Config{DSNConfig: &conf})