shell 生产带有作者信息的基本go源文件

时间:2014-05-27 17:49:10   收藏:0   阅读:480

#!/bin/bash

# Program to output a go source file with user information

CURRENT_TIME=$(date +"%x %r %Z")
cat << EOF
/*
Author:$USER
CreatedAt:$CURRENT_TIME
*/
package main
import(
"fmt"
)
func main(){
fmt.Println("Hello World!")
}
EOF

shell 生产带有作者信息的基本go源文件,布布扣,bubuko.com

原文:http://www.cnblogs.com/ggaaooppeennngg/p/3752865.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!