#!/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
时间: 2024-10-23 20:04:02