Re: [go-nuts] Re: Documention of a blog entry out of date

2019-02-11 Thread Victor Giordano
Hi Peter! Thank for updating the reference, so instead of looking decode i
DO see panics and reconver in encode.go!!
I guess there is slight inconsistency in the go blog.

I will help you guys (and help me, and others) by pointing this out in the
proper place.
Greetings
V




El lun., 11 feb. 2019 a las 11:06, peterGo ()
escribió:

> Victor,
>
> If you look at the source code, you may find that the blog inadvertently
> switched decode and encode. See encode.go.
>
> Reporting issues: If you spot bugs, mistakes, or inconsistencies in the Go
> project's code or documentation, please let us know by filing a ticket on
> our issue tracker. https://github.com/golang/go/issues
>
> Peter
>
> On Monday, February 11, 2019 at 8:19:58 AM UTC-5, Victor Giordano wrote:
>>
>> Dear all i was reading The defer, panic and recover entry
>> at the go blog until i
>> found this statement:
>>
>> For a real-world example of panic and recover, see the json package from
>>> the Go standard library. It decodes JSON-encoded data with a set of
>>> recursive functions. When malformed JSON is encountered, the parser calls
>>> panic to unwind the stack to the top-level function call, *which
>>> recovers from the panic and returns an appropriate error value* (see
>>> the 'error' and 'unmarshal' methods of the decodeState type in decode.go).
>>
>>
>> In the source code of decode.go
>>  and try to find "
>> *recover*" or "*panic*". Panic is present but no recover! I gues that as
>> time pass, changes to the code occurs and the documention was leave behind
>> outdated. Totally normal, but i guess it would the time to edit the blog.
>> If my premises aren't wrong, my concrete question is: Where i can file a
>> ticket for that?
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/XaSSyLrT81w/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Documention of a blog entry out of date

2019-02-11 Thread peterGo
Victor,

If you look at the source code, you may find that the blog inadvertently 
switched decode and encode. See encode.go.

Reporting issues: If you spot bugs, mistakes, or inconsistencies in the Go 
project's code or documentation, please let us know by filing a ticket on 
our issue tracker. https://github.com/golang/go/issues

Peter

On Monday, February 11, 2019 at 8:19:58 AM UTC-5, Victor Giordano wrote:
>
> Dear all i was reading The defer, panic and recover entry 
> at the go blog until i 
> found this statement:
>
> For a real-world example of panic and recover, see the json package from 
>> the Go standard library. It decodes JSON-encoded data with a set of 
>> recursive functions. When malformed JSON is encountered, the parser calls 
>> panic to unwind the stack to the top-level function call, *which 
>> recovers from the panic and returns an appropriate error value* (see the 
>> 'error' and 'unmarshal' methods of the decodeState type in decode.go).
>
>
> In the source code of decode.go 
>  and try to find "
> *recover*" or "*panic*". Panic is present but no recover! I gues that as 
> time pass, changes to the code occurs and the documention was leave behind 
> outdated. Totally normal, but i guess it would the time to edit the blog.
> If my premises aren't wrong, my concrete question is: Where i can file a 
> ticket for that?
>
>

-- 
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 more options, visit https://groups.google.com/d/optout.