Navneet Pandey

Managing multiple Go programs with main functions in a single folder

When you have multiple Go files in the same folder, each containing a main function, you'll encounter a problem when trying to build or run your program. Go treats all files in the same folder as part of the same package, and having multiple main functions in a

int vs int64

When we use int the system arch dictates if it will be int32 or int64. This is because go compiler will choose the most efficient integer size. So when using the int32 or int64 make sure you have a need for it. Meanwhile, floats are based on IEEE754 specification. The

Navneet Pandey © 2026