mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-28 03:37:40 +02:00
refactor: minor issue and documentation
This commit is contained in:
@@ -377,7 +377,7 @@ Routes can access the entrypoint from request context:
|
||||
|
||||
```go
|
||||
// Set entrypoint in context
|
||||
entrypoint.SetCtx(r.Context(), ep)
|
||||
entrypoint.SetCtx(task, ep)
|
||||
|
||||
// Get entrypoint from context
|
||||
if ep := entrypoint.FromCtx(r.Context()); ep != nil {
|
||||
|
||||
Reference in New Issue
Block a user