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: metrics.go
    path of file: ./repos/cloudprober/metrics
    
    the code of the file until where you have to start completion: // Copyright 2017 The Cloudprober Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.ap
    
func ParseValueFromString(val string) (Value, error) {
	c := val[0]
	switch {
	// A float value
	case '0' <= c && c <= '9':
		f, err := strconv.ParseFloat(val, 64)
		if err != nil {
			return nil, err
		}
		return NewFloat(f), nil

	// A map value
	case c == 'm':
		if !strings.HasPrefix(val, "map") {
			break
		}
		return ParseMapFromString(val)

	// A string value
	case c == '"':
		return NewString(strings.Trim(val, "\"")), nil

	// A distribution value
	case c == 'd':
		if !strings.HasPrefix(val, "dist") {
			break
		}
		distVal, err := ParseDistFromString(val)
		if err != nil {
			return nil, err
		}
		return distVal, nil
	}

	return nil, errors.New("unknown value type")
}