// GenSchemeTruncate generates a DSN by truncating the scheme://.
GenSchemeTruncate generates a DSN by truncating the scheme://.
// GenSchemeTruncate generates a DSN by truncating the scheme : // .
func GenSchemeTruncate(u *URL) (string, error) {
	s := u.String()
	if i := strings.Index(s, "://"); i != -1 {
		return s[i+3:], nil
	}
	return s, nil
}
func GenSchemeTruncate ( u * URL ) ( string , error ) { s := u . String ( ) if i := strings . Index ( s , " " ) ; i != - 1 { return s [ i + 3 : ] , nil } return s , nil }
GenSchemeTruncate generates a DSN by truncating the scheme://.
GenSchemeTruncate generates a DSN by truncating the scheme : // .