github.com/gopherjs/gopherjs@v1.19.0-beta1.0.20240506212314-27071a8796e4/build/fsutil.go (about)

     1  package build
     2  
     3  import (
     4  	"fmt"
     5  	"path/filepath"
     6  )
     7  
     8  func mustAbs(p string) string {
     9  	a, err := filepath.Abs(p)
    10  	if err != nil {
    11  		panic(fmt.Errorf("failed to get absolute path to %s", p))
    12  	}
    13  	return a
    14  }