Mercurial > mercurial > hgweb_kaigo.hg.cgi
view Perori/addtoday.go @ 7:3b16a1b57e00 draft default tip
add qtuti/95y.
author | pyon |
---|---|
date | Sat, 27 Nov 2021 14:50:30 +0900 |
parents | aaaa401818a1 |
children |
line wrap: on
line source
package main import ( "io/ioutil" "os" "time" ) func main() { t := time.Now().Format("20060102_") b, _ := ioutil.ReadFile(os.Args[1]) ioutil.WriteFile(t + os.Args[1], b, 0644) }