Using fmt.Println for error handling isnt a practical way, especially in linux or unix based systems.
because if you're using bash or zsh or any other shell, there will be 3 types of file descriptors, stdout, stderr, and stdin (which are low level integer table numbers that the kernel assign them for each communication channel )
when logging erros with fmt.Println you're polluting your Standard output data stream ( stdout ( 1 ) ) which might be used for CLI driven utility or similar, and using print() or println() isnt ideal for production grade, because both of them redirect every output to stderr amd both are almost temporary built in functions for fast debugging/bootstrapping that might get removed
Here is the show case :
package main






