Mercurial > mercurial > hgweb_kaigo.hg.cgi
view Perori/addtoday.go @ 4:ff7a3c254956 draft
new: superFC
author | pyon <pyon@macmini> |
---|---|
date | Tue, 15 Jun 2021 06:19:45 +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) }