[go-nuts] time.Truncate unexpected results in non-hour aligned timezones

2022-08-23 Thread Mine GO BOOM
Our system recently experienced a bug because of the surprise that sits (documented) inside of time.Truncate() : """ Truncate operates on the time as an absolute duration since the zero time; it does not operate on the presentation form of the time. Thus,

[go-nuts] Re: Why is Go fun?

2022-04-12 Thread Mine GO BOOM
Another "fun" thing people miss out on is that you spend less time making choices, and more time writing what you need. When there is generally one library/function/struct that does what you want to do, so you don't need to overthink about what tool to use to do what you are trying to accomplis

Re: [go-nuts] How to debug "Not a valid zip file" from zip.OpenReader

2022-02-23 Thread Mine GO BOOM
The core library should be safe and strict. It wouldn't be hard to clone the library and make a more lenient version to be used by people who like to append zip files to the end of images . On Wednesday, February 23, 2022 at 6

Re: [go-nuts] [Proposal] Change how gofmt formats struct fields

2020-01-30 Thread Mine GO BOOM
Code is looked at by more than just your favorite editor. I know some people who still open up Notepad to do some quick edits. I cat code all the time. gofmt ensures that every way you look at the code, be it through a terminal, one or two lines at a time, a web browser, a diff tool, or the mos