
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
github.com/sdming/gomvc
! move to gwk[https://github.com/sdming/wk]
smart web & lightweight web framework in golang
I am a new to golang, write your own code is the best way to learn a new programming language, so gomvc comes into the world.
But it's not a nother wheel, the goal of gomvc is to be a smart & fast web framework let you develop web application in KISS way.
my english is not fluent, so I try to keep this document straight and simple.
current version - 0.1
//model
type User struct {
Id int
Name string
Age int
ZipCode string
}
//repository
func GetById(id int) User {
return User{Id: id, Name: "Name " + strconv.Itoa(id), Age: 18, ZipCode: "000000"}
}
//controller
type UserController struct {
}
//get http://localhost:8080/user/user/1000 (application/json; application/xml;text/plain;text/html)
//return struct, marshal to json/xml/text accoring to "Accept"
func (*UserController) User(id int) User {
return GetById(id)
}
//start server
server := gomvc.DefaultServer()
controller := &user.UserController{}
server.Route("user", "^/user/(?P<action>[A-Za-z]+)(/(?P<p0>[0-9]+))*", "*", controller)
server.Start()
basic example
checkout code: example/user_controller.go
api test demo:
demo: how to write a customer result(todo:)
demo: how to write a filter(gzip)(todo:)
demo: how to return file stream(todo:)
find view template in fllowing priority:
invoke viw engine by file extension name
nginx, haproxy, Varnish can provide awesome service
todo
2012.6.18 init
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.