The documentation of that package mentions commands like this one:
-block-file=[FILENAME]
Those commands look like Node.js commands. In the past, I used the Node.js things several times for the reason of SASS, uglify-js, etc, but I cannot recall completely how to use it at the moment. When it comes to these terminal things, it can be quite abstruse to a front-end developer like me.
I tried searching the answer on the internet and YouTube but couldn’t find step-by-step tutorials.
My operation system is Windows 7. I already installed Go in my D drive.
Let’s say I’m at desktop right now. Is the first step opening the Command Prompt?
Thats arguments to the binary you can compile from that repositories project.
If you only import the github.com/maxmind/geoip2-csv-converter/convert package, you won’t need to care for them.
Only if you want to use the program that is created using that source, you need to use those together with that executable.
Edit and PS: You should never close your terminal unless you need it to reload the environment. It should be the second most often used tool in programming, right after a simple editor which might even run in a terminal. No-one needs Blowclipse or IntelliHuge…
Thank you for illustrating. The file I’m trying to convert is GeoLite2-City-Blocks-IPv4.csv. It is in a folder in my desktop. So I saved the converter.go file in the same folder.
I need to convert only two files: GeoLite2-City-Blocks-IPv4.csv and GeoLite2-City-Blocks-IPv6.csv. And then I will import the two converted files into MySQL database. So I guess my situation is the former? If so, could you help check if the following command is correct?
That for your operating system. Just drop it where you need it and run it. Assuming the name of the executable is foo and you dropped it into the same folder as your data files then you’d run like this: