Mercurial > mercurial > hgweb_kaigo.hg.cgi
view Perori/addtoday.go @ 2:65b8529196d5 draft
Porori: add comment.
author | pyon <pyon@macmini> |
---|---|
date | Sat, 29 May 2021 10:07:57 +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) }