func GoFieldsPaths(pb *field_mask.FieldMask, v interface{}) []string {
	var newFields []string
	if len(pb.GetPaths()) == 0 {
		return newFields
	}
	goFields := goFieldsFromProtoMasks(reflect.ValueOf(v))
	for _, field := range pb.Paths {
		goName, ok := goFields[field]
		if ok {
			newFields = append(newFields, goName)
		} else {
			newFields = append(newFields, field)
		}
	}
	return newFields
}
GoFieldsPaths converts protobuf FieldMask paths to Go fields paths.

This implementation does not support separation by ",", but only paths separated by ".".
package goproto
import (
	"fmt"
	"reflect"
	"regexp"
	"strings"
	"google.golang.org/genproto/protobuf/field_mask"
)
var nameTagRegex *regexp.Regexp
func init() {
	nameTagRegex = regexp.MustCompile("name\\=[a-zA-Z_0-9]+")
}