Hacker News new | ask | show | jobs
by redbad 4506 days ago

    import (
    	"./utils"
This is what's known as a relative import, and it's very bad. You want "github.com/johnnye/short/utils", or (better yet) put your base62 stuff in package main, since it's just one function.
2 comments

Cheers, I knew it wasn't very "go like" at the time. Will go and tidy it up at the weekend.
go discourages relative imports? interesting. why? Are these files not packaged together?