github.com/ethereumproject/go-ethereum@v5.5.2+incompatible/core/helpers.go (about)

     1  // +build !windows
     2  
     3  package core
     4  
     5  import (
     6  	"fmt"
     7  	"io"
     8  
     9  	"github.com/ethereumproject/go-ethereum/core/assets"
    10  )
    11  
    12  func assetsOpen(path string) (io.ReadCloser, error) {
    13  	file, err := assets.DEFAULTS.Open(path)
    14  	if err != nil {
    15  		err = fmt.Errorf("Error opening '%s' default JSON: %v", path, err)
    16  	}
    17  	return file, err
    18  }