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: string.go
    path of file: ./repos/faygo/vendor/github.com/henrylee2cn/ameda
    
    the code of the file until where you have to start completion: package ameda

import (
	"strconv"
)

// StringToInterface converts string to interface.
func StringToInterface(v string) interface{} {
	return v
}

// StringToInterfacePtr co
    
func StringToInt32(v string, emptyAsZero ...bool) (int32, error) {
	i, err := strconv.ParseInt(v, 10, 32)
	if err != nil {
		if !isEmptyAsZero(emptyAsZero) {
			return 0, err
		}
	}
	return int32(i), nil
}