code: func setRoot() {
  	wdStr, err := os.Getwd()
  	if err == nil {
  		gofpdfDir = ""
  		list := strings.Split(filepath.ToSlash(wdStr), "/")
  		for j := len(list) - 1; j >= 0 && list[j] != "gofpdf"; j-- {
  			gofpdfDir = filepath.Join(gofpdfDir, "..")
  		}
  	} else {
  		panic(err)
  	}
  }
docs: // setRoot assigns the relative path to the gofpdfDir directory based on current working
  // directory