19 lines
209 B
Go
19 lines
209 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
|
|
f, err := os.OpenFile("./log", os.O_TRUNC|os.O_CREATE|os.O_RDWR, 0660)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
log.SetOutput(f)
|
|
|
|
// Updating()
|
|
InsertData()
|
|
}
|