gofuncy/value.go
Kevin Franklin Kim e17ae3a43a
initial commit
2024-08-01 22:57:38 +02:00

15 lines
163 B
Go

package gofuncy
import (
"context"
)
type Value[T any] struct {
ctx context.Context
Data T
}
func (m *Value[T]) Context() context.Context {
return m.ctx
}