Created
July 24, 2014 09:04
-
-
Save cryptix/edb5d9b660ca624a4234 to your computer and use it in GitHub Desktop.
rice doesn't find cmds where a const is used
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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