通过AWS SNS发送SMS消息的软件包 介绍 通过AWS SNS发送电子邮件 例子 package main import ( "context" sms "github.com/gofor-little/aws-sms" ) func main () { // Initialize the SMS package. if err := sms . Initialize ( "AWS_PROFILE" , "AWS_REGION" ); err != nil { panic ( err ) } // Build the SMS data. data := sms. Data { SenderID : "ExampleApp" , PhoneNumber : "+61412345678" , Message : "Example Message" , }