code: func (dsn *DSN) String() string {
  	u := url.URL{
  		Host: fmt.Sprintf("tcp(%s)", dsn.Host),
  		Path: "/" + dsn.Database,
  		RawQuery: url.Values{
  			"timeout": {dsn.Timeout.String()},
  		}.Encode(),
  	}
  
  	// Set password, if available.
  	if dsn.Password == "" {
  		u.User = url.User(dsn.User)
  	} else {
  		u.User = url.UserPassword(dsn.User, dsn.Password)
  	}
  
  	// Remove leading double-slash.
  	return strings.TrimPrefix(u.String(), "//")
  }
docs: // String encodes dsn to a URL string format.