镜像自地址
https://github.com/betterfor/action-send-mail.git
已同步 2026-11-20 16:37:04 +00:00
read env
这个提交包含在:
5
main.go
5
main.go
@ -7,6 +7,7 @@ import (
|
||||
"github.com/spf13/viper"
|
||||
"gopkg.in/gomail.v2"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
@ -17,7 +18,9 @@ func init() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
viper.ReadInConfig()
|
||||
//viper.ReadInConfig()
|
||||
|
||||
fmt.Println(os.Environ())
|
||||
|
||||
fmt.Println(viper.AllKeys())
|
||||
mailHost := viper.GetString("server_address")
|
||||
|
||||
在新工单中引用
屏蔽一个用户