Comment on Show HN: link shortening API in GoComments−redbad12y 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.−jnye131OP12yCheers, I knew it wasn't very "go like" at the time. Will go and tidy it up at the weekend.−malandrew12ygo discourages relative imports? interesting. why? Are these files not packaged together?
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?