Created
September 17, 2018 17:44
-
-
Save DiegoSantosWS/136e39dc86d56f6f7495315db34c1afe to your computer and use it in GitHub Desktop.
router html
This file contains 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 ( | |
"net/http" | |
m "github.com/DiegoSantosWS/gotoweb/example_html/models" | |
) | |
func main() { | |
//rota index | |
http.HandleFunc("/", m.IndexPage) | |
//rota contato | |
http.HandleFunc("/contato", m.ContactPage) | |
//fmt.Println("Estou escutando comandante...") | |
//Instanciando servidor na porta 1234 | |
http.ListenAndServe(":1234", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment