I have a program in which I use a lot "../" which is to go one level up in the file system and run some process on the directory with specific name. I have a command line tool in Go.
I have 3 questions
- there is nicer way to do it instead of “../“
- is there a const with which I can use instead of “/“
- if 2 is not available should I create “constants“ under that internal package to share the “/“ between packages since I need it in many place (from diff packages...)
example
dir.zip("../"+tmpDirName, "../"+m.Id+".zip", "../"+tmpDirName)