// Trim removes quotes from s
Trim removes quotes from s
// Trim removes quotes from s
func (q Quoter) Trim(s string) string {
	if len(s) < 2 {
		return s
	}
	var buf strings.Builder
	for i := 0; i < len(s); i++ {
		switch {
		case i == 0 && s[i] == q.Prefix:
		case i == len(s)-1 && s[i] == q.Suffix:
		case s[i] == q.Suffix && s[i+1] == '.':
		case s[i] == q.Prefix && s[i-1] == '.':
		default:
			buf.WriteByte(s[i])
		}
	}
	return buf.String()
}
func ( q Quoter ) Trim ( s string ) string { if len ( s ) < 2 { return s } var buf strings . Builder for i := 0 ; i < len ( s ) ; i ++ { switch { case i == 0 && s [ i ] == q . Prefix : case i == len ( s ) - 1 && s [ i ] == q . Suffix : case s [ i ] == q . Suffix && s [ i + 1 ] == '.' : case s [ i ] == q . Prefix && s [ i - 1 ] == '.' : default : buf . WriteByte ( s [ i ] ) } } return buf . String ( ) }
Trim removes quotes from s
Trim removes quotes from s