func Int32(val string) (int32, error) {
	i, err := strconv.ParseInt(val, 0, 32)
	if err != nil {
		return 0, err
	}
	return int32(i), nil
}
Int32 converts the given string representation of an integer into int32.
package pbgo
import (
	"encoding/base64"
	"strconv"
	"github.com/golang/protobuf/jsonpb"
	"github.com/golang/protobuf/ptypes/duration"
	"github.com/golang/protobuf/ptypes/timestamp"
)
func String(val string) (string, error) {
	return val, nil
}
func Bool(val string) (bool, error) {
	return strconv.ParseBool(val)
}
func Float64(val string) (float64, error) {
	return strconv.ParseFloat(val, 64)
}
func Float32(val string) (float32, error) {
	f, err := strconv.ParseFloat(val, 32)
	if err != nil {
		return 0, err
	}
	return float32(f), nil
}
func Int64(val string) (int64, error) {
	return strconv.ParseInt(val, 0, 64)
}