You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mixed.go
    path of file: ./repos/storj/cmd/uplink/ulfs
    
    the code of the file until where you have to start completion: // Copyright (C) 2021 Storj Labs, Inc.
// See LICENSE for copying information.

package ulfs

import (
	"context"

	"github.com/zeeb
    
func (m *Mixed) Stat(ctx context.Context, loc ulloc.Location) (*ObjectInfo, error) {
	if bucket, key, ok := loc.RemoteParts(); ok {
		return m.remote.Stat(ctx, bucket, key)
	} else if path, ok := loc.LocalParts(); ok {
		return m.local.Stat(ctx, path)
	}
	return nil, errs.New("unable to stat loc %q", loc.Loc())
}