Registry /
utility / roadrunner-server-endure-v2
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.
endure
✓ github.com/roadrunner-server/endure/v2
Create a container, register a service, and retrieve it.
package main
import (
"fmt"
"github.com/roadrunner-server/endure/v2"
)
func main() {
container := endure.New()
container.Register(&MyService{})
container.Init()
if svc, err := container.Get("MyService"); err == nil {
fmt.Println(svc)
}
}
type MyService struct{}
func (s *MyService) Init() error { return nil }
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.6.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.