mirror of
https://github.com/foomo/gofuncy.git
synced 2025-10-16 12:25:41 +00:00
15 lines
197 B
Go
15 lines
197 B
Go
package gofuncy
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Value[T any] struct {
|
|
ctx context.Context //nolint:containedctx // required
|
|
Data T
|
|
}
|
|
|
|
func (m *Value[T]) Context() context.Context {
|
|
return m.ctx
|
|
}
|