[go-nuts] Re: Modeling domain errors

2023-04-21 Thread 'Torben Schinke' via golang-nuts
Also asked this on reddit and the feedback can be found here: https://www.reddit.com/r/golang/comments/12tsnhf/who_returns_specific_error_interfaces_to_model/ Torben Schinke schrieb am Mittwoch, 19. April 2023 um 12:01:33 UTC+2: > We are a team of experienced developers and are currently

Re: [go-nuts] Confusing Time Issue

2023-04-21 Thread jlfo...@berkeley.edu
You're absolutely right, of course. Jon -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the

Re: [go-nuts] Confusing Time Issue

2023-04-21 Thread Ian Lance Taylor
On Fri, Apr 21, 2023 at 5:27 PM jlfo...@berkeley.edu wrote: > > Consider the program below. > > I want to compute the duration between a time that I put in the > "old_time_str" variable and the current time. If I put the current time in a > string, the program shows the correct duration. If I

[go-nuts] Confusing Time Issue

2023-04-21 Thread jlfo...@berkeley.edu
Consider the program below. I want to compute the duration between a time that I put in the "old_time_str" variable and the current time. If I put the current time in a string, the program shows the correct duration. If I get the current time using time.Now() then the duration shown is 7 hours