code: func (w *wizard) importGenesis() {
  	// Request the genesis JSON spec URL from the user
  	fmt.Println()
  	fmt.Println("Where's the genesis file? (local file or http/https url)")
  	url := w.readURL()
  
  	// Convert the various allowed URLs to a reader stream
  	var reader io.Reader
  
  	switch url.Scheme {
  	case "http", "https":
  		// Remote web URL, retrieve it via an HTTP client
  		res, err := http.Get(url.String())
  		if err != nil {
  			log.Error("Failed to retrieve remote genesis", "err", err)
  			return
  		}
  		defer res.Body.Close()
  		reader = res.Body
  
  	case "":
  		// Schemaless URL, interpret as a local file
  		file, err := os.Open(url.String())
  		if err != nil {
  			log.Error("Failed to open local genesis", "err", err)
  			return
  		}
  		defer file.Close()
  		reader = file
  
  	default:
  		log.Error("Unsupported genesis URL scheme", "scheme", url.Scheme)
  		return
  	}
  	// Parse the genesis file and inject it successful
  	var genesis core.Genesis
  	if err := json.NewDecoder(reader).Decode(&genesis); err != nil {
  		log.Error("Invalid genesis spec: %v", err)
  		return
  	}
  	log.Info("Imported genesis block")
  
  	w.conf.Genesis = &genesis
  	w.conf.flush()
  }
docs: // importGenesis imports a Geth genesis spec into puppeth.