func betweenQuotesOrAfterEquals(orig string) string {
	s := betweenQuotes(orig)
	if s == "" && strings.Count(orig, "=") == 1 {
		s = strings.TrimSpace(strings.Split(orig, "=")[1])
	}
	return s
}
Return the string between the quotes or after the "=", if possible
or return the original string
package main
import (
	"os"
	"strings"
)
func min(a, b int) int {
	if a < b {
		return a
	}
	return b
}
func capitalize(s string) string {
	lenS := len(s)
	switch {
	case lenS >= 2:
		return strings.ToTitle(s[0:1]) + s[1:]
	case lenS == 1:
		return strings.ToUpper(string(s[0]))
	default:
		return s
	}
}
func between(orig, a, b string) string {
	if strings.Contains(orig, a) && strings.Contains(orig, b) {
		posa := strings.Index(orig, a) + len(a)
		posb := strings.LastIndex(orig, b)
		if posa > posb {
			return ""
		}
		return orig[posa:posb]
	}
	return ""
}
func betweenQuotes(orig string) string {
	var s string
	for _, quote := range []string{"\"", "'"} {
		s = between(orig, quote, quote)
		if s != "" {
			return s
		}
	}
	return ""
}