Mercurial > mercurial > hgweb_kaigo.hg.cgi
view Perori/addtoday.go @ 1:743a122cae47 draft
Porori: ver.up
author | pyon <pyon@macmini> |
---|---|
date | Thu, 27 May 2021 22:01:27 +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) }