18 lines
192 B
Go
18 lines
192 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()
|
||
|
}
|