#!/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