Skip to content

Instantly share code, notes, and snippets.

@cryptix
Created July 24, 2014 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cryptix/edb5d9b660ca624a4234 to your computer and use it in GitHub Desktop.
Save cryptix/edb5d9b660ca624a4234 to your computer and use it in GitHub Desktop.
rice doesn't find cmds where a const is used
package main
import (
"fmt"
"github.com/GeertJohan/go.rice"
)
const weirdTmp = "/tmp/weird"
func main() {
dot := rice.MustFindBox(".")
fmt.Println("dot:", dot)
constDir := rice.MustFindBox(weirdTmp)
fmt.Println("constDir:", constDir)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment