Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GuyARoss/orbit
/ New
Function
New
examples/basic-react/orbitgen/orb_http.go:285–293 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
283
return
defaultHTMLDoc(html)
284
}
285
func
New() (*Serve, error) {
286
for
_, sfn :=
range
serverStartupTasks {
287
sfn()
288
}
289
return
(&Serve{
290
mux: http.NewServeMux(),
291
doc: setupDoc(),
292
}).setupMuxRequirements(), nil
293
}
Callers
3
main
Function · 0.92
TestNew_ValidPublicDir
Function · 0.70
TestNew_InvalidPublicDir
Function · 0.70
Calls
2
setupDoc
Function · 0.70
setupMuxRequirements
Method · 0.45
Tested by
2
TestNew_ValidPublicDir
Function · 0.56
TestNew_InvalidPublicDir
Function · 0.56