This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{define "home"}} | |
| <html> | |
| <head> | |
| <title>Hello World</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <h2>Welcome!</h2> | |
| <p>Please fill out the following contact form</p> | |
| <form id="contactForm"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type SNSData struct { | |
| Subject string `json:"Subject"` | |
| Message string `json:"Message"` | |
| MessageID string `json:"MessageId"` | |
| Signature string `json:"Signature"` | |
| SignatureVersion string `json:"SignatureVersion"` | |
| SigningCertURL string `json:"SigningCertURL"` | |
| SubscribeURL string `json:"SubscribeURL"` | |
| Timestamp string `json:"Timestamp"` | |
| Token string `json:"Token"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "encoding/json" | |
| ) | |
| type User struct { | |
| User UserData `json:"User"` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "io/ioutil" | |
| "log" | |
| "fmt" | |
| ) | |
| func main() { | |
| message, err := ioutil.ReadFile("./file_name.txt") |