19 lines
261 B
Go
19 lines
261 B
Go
package contextfull
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Result struct {
|
|
value string
|
|
}
|
|
|
|
func NewResult(value string) Result {
|
|
return Result{value}
|
|
}
|
|
|
|
func (r Result) GetValue(ctx context.Context) (string, error) {
|
|
// TODO - get value from s3
|
|
return r.value, nil
|
|
}
|