1 Star 2 Fork 0

api-go/iris

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
_benchmarks
_examples
apidoc/yaag
authentication
cache
configuration
from-configuration-structure
from-toml-file
from-yaml-file
configs
shared-configuration
main.go
functional
README.md
convert-handlers
experimental-handlers
file-server
hello-world
hero
http-listening
http_request
http_responsewriter
miscellaneous
mvc
orm/xorm
overview
routing
sessions
structuring
subdomains
testing/httptest
tutorial
view
websocket
README.md
cache
context
core
hero
httptest
middleware
mvc
sessions
typescript
vendor
view
websocket
.gitattributes
.gitignore
.travis.yml
AUTHORS
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile
Dockerfile.build
FAQ.md
Gopkg.lock
Gopkg.toml
HISTORY.md
HISTORY_GR.md
HISTORY_ZH.md
LICENSE
README.md
README_GR.md
README_RU.md
README_ZH.md
VERSION
configuration.go
configuration_test.go
deprecated.go
doc.go
go19.go
iris.go
克隆/下载
main.go 641 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"github.com/kataras/iris"
)
func main() {
app := iris.New()
app.Get("/", func(ctx iris.Context) {
ctx.HTML("<b>Hello!</b>")
})
// [...]
// Good when you have two configurations, one for development and a different one for production use.
// If iris.YAML's input string argument is "~" then it loads the configuration from the home directory
// and can be shared between many iris instances.
app.Run(iris.Addr(":8080"), iris.WithConfiguration(iris.YAML("./configs/iris.yml")))
// or before run:
// app.Configure(iris.WithConfiguration(iris.YAML("./configs/iris.yml")))
// app.Run(iris.Addr(":8080"))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/netscript/iris.git
git@gitee.com:netscript/iris.git
netscript
iris
iris
v10.1.0

搜索帮助