code: func Init(host string, port int, core string) (*Connection, error) {
  
  	if len(host) == 0 {
  		return nil, fmt.Errorf("Invalid hostname (must be length >= 1)")
  	}
  
  	if port <= 0 || port > 65535 {
  		return nil, fmt.Errorf("Invalid port (must be 1..65535")
  	}
  
  	url := fmt.Sprintf("http://%s:%d/solr/%s", host, port, core)
  	return &Connection{URL: url}, nil
  }
docs: /*
   * Inits a new Connection to a Solr instance
   * Note: this doesn't actually hold a connection, its just
   *       a container for the URL.
   * This creates a URL with the pattern http://{host}:{port}/solr/{core}
   * If you want to create a connection with another pattern just create
   * the struct directly i.e. conn := &Connection{myCustomURL}.
   */