Registry / web-framework / alexedwards-scs

alexedwards-scs

JSON →
library1.4.1gogounverified

SCS is a session management library for Go HTTP servers, supporting multiple storage backends.

go get github.com/alexedwards/scs
INSTALL
IMPORT
SIG · ALEXEDWARDS-SCS
A
alexedwards-scs
web-frameworkgov1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

scs
github.com/alexedwards/scs

Set up a basic HTTP server with session management

package main import ( "fmt" "net/http" "github.com/alexedwards/scs" ) func main() { sm := scs.New() http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "Hello") }) http.ListenAndServe(":4000", sm.LoadAndSave(http.DefaultServeMux)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
42
OpenAI (training)
1
Resources
alexedwards-scs — go get alexedwards-scs · libregistry