Skip to content

Commit

Permalink
line file
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jan 6, 2024
1 parent f3e013a commit 4afdffe
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cmd/gopcomm/gop_autogen.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@ import (
)
//go:embed yap
var yapFS embed.FS
//line community.gop:11
//line cmd/gopcomm/community.gop:11
func main() {
//line community.gop:11:1
//line cmd/gopcomm/community.gop:11:1
fsYap := func() (_gop_ret fs.FS) {
//line community.gop:11:1
//line cmd/gopcomm/community.gop:11:1
var _gop_err error
//line community.gop:11:1
//line cmd/gopcomm/community.gop:11:1
_gop_ret, _gop_err = fs.Sub(yapFS, "yap")
//line community.gop:11:1
//line cmd/gopcomm/community.gop:11:1
if _gop_err != nil {
//line community.gop:11:1
_gop_err = errors.NewFrame(_gop_err, "fs.sub(yapFS, \"yap\")", "community.gop", 11, "main.main")
//line community.gop:11:1
//line cmd/gopcomm/community.gop:11:1
_gop_err = errors.NewFrame(_gop_err, "fs.sub(yapFS, \"yap\")", "cmd/gopcomm/community.gop", 11, "main.main")
//line cmd/gopcomm/community.gop:11:1
panic(_gop_err)
}
//line community.gop:11:1
//line cmd/gopcomm/community.gop:11:1
return
}()
//line community.gop:12:1
//line cmd/gopcomm/community.gop:12:1
y := yap.New(fsYap)
//line community.gop:14:1
//line cmd/gopcomm/community.gop:14:1
y.GET("/p/:id", func(ctx *yap.Context) {
//line community.gop:15:1
//line cmd/gopcomm/community.gop:15:1
ctx.YAP(200, "article", yap.H{"id": ctx.Param("id")})
})
//line community.gop:20:1
//line cmd/gopcomm/community.gop:20:1
y.Run(":8080")
}

0 comments on commit 4afdffe

Please sign in to comment.