fix golint issues in core/contextx (#477)

This commit is contained in:
Kevin Wan
2021-02-18 18:00:20 +08:00
committed by GitHub
parent 425be6b4a1
commit f6894448bd
3 changed files with 4 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ func (cv contextValuer) Value(key string) (interface{}, bool) {
return v, v != nil
}
// For unmarshals ctx into v.
func For(ctx context.Context, v interface{}) error {
return unmarshaler.UnmarshalValuer(contextValuer{
Context: ctx,