MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / platformName

Function platformName

apps/server/internal/httpserver/server.go:218–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216}
217
218func platformName() string {
219 switch runtime.GOOS {
220 case "darwin":
221 return "darwin"
222 case "windows":
223 return "win32"
224 default:
225 return "linux"
226 }
227}
228
229func (s *Server) requireAuth(next http.Handler) http.Handler {
230 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers 2

capabilitiesMethod · 0.85
platformMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected