[go-nuts] Re: Best Practices for Error Handling in Go APIs

2025-02-06 Thread Byungjun You
Hi Jeremy, I really appreciate all the materials you have shared. I could understand that wrapping errors with informative messages is one of important best practice treating errors. I'll keep it mind that :) It was also very helpful to read errors section in Effective Go which you

Re: [go-nuts] Best Practices for Error Handling in Go APIs

2025-02-06 Thread Byungjun You
Hi Mike, thank you so much for sharing your thoughts and all those resources with concrete examples. Those really help me to understand how errors in go work and how it is different from errors in Java. Based on what you've shared, here's how I understand it: In essence, because an e

[go-nuts] Best Practices for Error Handling in Go APIs

2025-02-03 Thread Byungjun You
some best practices that API providers can follow to help API users handle errors effectively? -- 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 g

Re: [go-nuts] Re: Getting new coverage output format from go test -cover

2025-01-23 Thread Byungjun You
I'm so glad to hear it helped you! > I wonder where the blog author found that flag? It's not exposed in `go test` I guess "-test.gocoverdir" parameter is not exposed to go test users well. There is an another comment that it was very hard to find documents about "

Re: [go-nuts] Re: Getting new coverage output format from go test -cover

2025-01-14 Thread Byungjun You
Have you try go test with -args -test.gocoverdir parameters? > go test -cover ./... -args -test.gocoverdir="{a directory where coverage reports should be generated}" I found this blog post is very helpful when merging unit and integration test coverage reports. https://dustinspec

Re: [go-nuts] Invalid JSON document from 'go list -json std'

2016-08-24 Thread YOU
std >>>> ... would output a valid JSON document, because >>>> go help list >>>> writes: >>>> The -json flag causes the package data to be printed in JSON format >>>> instead of using the template format. >>>> but ... >>

[go-nuts] Re: nodemon style tool

2016-07-26 Thread YOU
everal files .go and polymer (.html)? Thanks, Karl > -- 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. For