Skip to content

Instantly share code, notes, and snippets.

@boanergepro
Last active November 2, 2017 14:54
Show Gist options
  • Save boanergepro/83873f55fdba52111b30ace4d0d49086 to your computer and use it in GitHub Desktop.
Save boanergepro/83873f55fdba52111b30ace4d0d49086 to your computer and use it in GitHub Desktop.
Como crear un servidor en go usando iris
package main
import(
"github/kataras/iris"
)
func main() {
app := iris.New()
app.Get("/", func(contexto iris.Context){
contexto.HTML("<h1>Hola Mundo</h1>")
})
app.Run(iris.Addr(":8080"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment