Skip to content

Commit efd720a

Browse files
authored
fix: broken link in hooks.go comment (#476)
* fix: URL in hooks.go comment Updated the URL in the comment to point to the correct hooks specification. Signed-off-by: Julian Espérat <Savageman@users.noreply.github.com> * fix: update broken link in hooks.go Signed-off-by: Julian Espérat <Savageman@users.noreply.github.com> --------- Signed-off-by: Julian Espérat <Savageman@users.noreply.github.com>
1 parent 5b45d60 commit efd720a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openfeature/hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "context"
44

55
// Hook allows application developers to add arbitrary behavior to the flag evaluation lifecycle.
66
// They operate similarly to middleware in many web frameworks.
7-
// https://github.com/open-feature/spec/blob/main/specification/hooks.md
7+
// https://github.com/open-feature/spec/blob/main/specification/sections/04-hooks.md
88
type Hook interface {
99
Before(ctx context.Context, hookContext HookContext, hookHints HookHints) (*EvaluationContext, error)
1010
After(ctx context.Context, hookContext HookContext, flagEvaluationDetails InterfaceEvaluationDetails, hookHints HookHints) error

pkg/openfeature/hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
// Hook allows application developers to add arbitrary behavior to the flag evaluation lifecycle.
88
// They operate similarly to middleware in many web frameworks.
9-
// https://github.com/open-feature/spec/blob/main/specification/hooks.md
9+
// https://github.com/open-feature/spec/blob/main/specification/sections/04-hooks.md
1010
//
1111
// Deprecated: use github.com/open-feature/go-sdk/openfeature.Hook, instead.
1212
type Hook = openfeature.Hook

0 commit comments

Comments
 (0)