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: reflect.go
    path of file: ./repos/malice/vendor/github.com/dustin/go-jsonpointer
    
    the code of the file until where you have to start completion: package jsonpointer

import (
	"reflect"
	"strconv"
	"strings"
)

// Reflect gets the value at the specified path from a struct.
func Reflect(o interface{}, path string) interface{} {
	if path == "" {
		return o
	}

	parts := parsePointer(path)
	var rv interface{} = o

OUTER:
	for _, p := range parts {
		val := reflect.ValueOf(rv)
		if val.Kind() == reflect.Ptr {
			val = val.Elem()
		}

		if val.Kind() == reflect.Struct {
			typ := val.Type()
			for i := 0; i < typ.NumField(); i++ {
				sf := typ.Field(i)
				tag := sf.Tag.Get("json")
				name := parseJSONTagName(tag)
				if (name != "" && name == p) || sf.Name == p {
					rv = val.Field(i).Interface()
					continue OUTER
				}
			}
			// Found no matching field.
			return nil
		} else if val.Kind() == reflect.Map {
			// our pointer always gives us a string key
			// here we try to convert it into the correct type
			mapKey, canConvert := makeMapKeyFromStrin
    
func Reflect(o interface{}, path string) interface{} {
	if path == "" {
		return o
	}

	parts := parsePointer(path)
	var rv interface{} = o

OUTER:
	for _, p := range parts {
		val := reflect.ValueOf(rv)
		if val.Kind() == reflect.Ptr {
			val = val.Elem()
		}

		if val.Kind() == reflect.Struct {
			typ := val.Type()
			for i := 0; i < typ.NumField(); i++ {
				sf := typ.Field(i)
				tag := sf.Tag.Get("json")
				name := parseJSONTagName(tag)
				if (name != "" && name == p) || sf.Name == p {
					rv = val.Field(i).Interface()
					continue OUTER
				}
			}
			// Found no matching field.
			return nil
		} else if val.Kind() == reflect.Map {
			// our pointer always gives us a string key
			// here we try to convert it into the correct type
			mapKey, canConvert := makeMapKeyFromString(val.Type().Key(), p)
			if canConvert {
				field := val.MapIndex(mapKey)
				if field.IsValid() {
					rv = field.Interface()
				} else {
					return nil
				}
			} else {
				return nil
			}
		} else if val.Kind() == reflect.Slice || val.Kind() == reflect.Array {
			i, err := strconv.Atoi(p)
			if err == nil && i < val.Len() {
				rv = val.Index(i).Interface()
			} else {
				return nil
			}
		} else {
			return nil
		}
	}

	return rv
}