
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
github.com/vanackere/slim
Slim is a fork of Goji, a minimalistic web framework that values composability and simplicity.
func(ctx context.Context, w http.ResponseWriter, r *http.Request, next web.Handler)
package main
import (
"fmt"
"net/http"
"code.google.com/p/go.net/context"
"github.com/vanackere/slim"
"github.com/vanackere/slim/web"
)
func hello(ctx context.Context, w http.ResponseWriter, r *http.Request) {
p := web.URLParams(ctx)
fmt.Fprintf(w, "Hello, %s!", p["name"])
}
func main() {
slim.Get("/hello/:name", hello)
slim.Serve()
}
Slim also includes a sample application in the example
folder which
was artificially constructed to show off all of Slim's features. Check it out!
net/http
/foo/:bar
patterns and regular expressions,
as well as custom patterns)See Goji's README for why Goji's - and therore Slim's ! - approach is good.
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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.