π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
package tests
import (
"net/http"
"net/http/cookiejar"
"testing"
)
var client *http.Client
func InitClient(t *testing.T) *http.Client {
if client != nil {
return client
}
jar, err := cookiejar.New(nil)
if err != nil {
t.Fatalf("Error with client init: %v", err)
}
client = &http.Client{Jar: jar}
return client
}