For years, if I needed to write a computer program, I’d have used one of the following: C, C++ or C#. Those have been the mainstays of programmers who needed an executable program for at least the two decades. Today, though, I’ve just written my first executable in a new language that’s surprisingly easy to work with.
The Go language is like the new kid on the block of compilers. Like the ones mentioned before, it will take text and convert it into instructions the computer can do.
Probably the best thing about the Go language is that it’s entirely open-sourced. If you wanted to work on the compiler itself, you could do so.
The program I’ve just written is technically called a Command Line Interface (CLI) program and will display technical details inside the selected GCODE file for a 3D print job.
Typical session of the program in use:
$ SlicingInfo RC_3DBenchy.gcode Slicer: Cura_SteamEngine 2.3.1 Layers: 239 Quality: low Profile: Low Quality Robo C2 Filament size: 1.75 Hotend temp: 190 Bed temp: 0 Supports: False Retraction: True Jerk: True Speed 1st layer: 10 Print speed: 50 Travel speed: 80 Infill pattern: cubic Finished.