摘要:
package connectdata import ( "database/sql" "fmt" "os" _ "github.com/go-sql-driver/mysql" ) func ConnectData() *sql.DB { db, err := sql.Open("mysql", 阅读全文
摘要:
package scripts import ( "bufio" "fmt" "io" "os" ) // 按行读取文件内容 func ReadFile(fileName string, contentChan chan string) { file, err := os.Open(fileName 阅读全文