An interesting snippet of code in the Go stdlib that ensures a loop is executed at least once, much like a do-while loop in C:
for once := true; once || len(b) > 0; once = false {
Credit to @_joetsai
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
An interesting snippet of code in the Go stdlib that ensures a loop is executed at least once, much like a do-while loop in C:
for once := true; once || len(b) > 0; once = false {
Credit to @_joetsai