質問編集履歴
2
教授ポイント明確化
    
        title	
    CHANGED
    
    | @@ -1,1 +1,1 @@ | |
| 1 | 
            -
            GoでDB接続すると怒られる
         | 
| 1 | 
            +
            GoでDB接続すると怒られる(runtime error)
         | 
    
        body	
    CHANGED
    
    | 
            File without changes
         | 
1
プライバシー的にNGな箇所の削除
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -81,7 +81,7 @@ | |
| 81 81 |  | 
| 82 82 | 
             
            		var err error
         | 
| 83 83 |  | 
| 84 | 
            -
            		dbInfo := "root:root@localhost:8889/tcp( | 
| 84 | 
            +
            		dbInfo := "root:root@localhost:8889/tcp(DB名)?charset=utf8mb4"
         | 
| 85 85 |  | 
| 86 86 | 
             
            		// DB接続
         | 
| 87 87 | 
             
            		db, err = sql.Open("mysql", dbInfo)
         | 
