diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -16,6 +16,8 @@ import ( "github.com/urfave/cli/v3" ) +const shortcodeFilename = "urls.csv" + func main() { if os.Getenv("GOEXPERIMENT") != "goroutineleakprofile" { log.Fatal("Missing GOEXPERIMENT=goroutineleakprofile environment setting") @@ -74,8 +76,7 @@ func main() { }, Action: func(ctx context.Context, cmd *cli.Command) error { if shortcode := cmd.String("shortcode"); shortcode != "" { - // FIXME: shortcode filename is hardcoded for now. - rawURL, err := getURLFromShortcode("urls.csv", shortcode) + rawURL, err := getURLFromShortcode(shortcodeFilename, shortcode) if err != nil { return err } |
