Re: [go-nuts] using the xml package with data with complex name spacing

2020-12-14 Thread Sam Whited
In the example you provided it is working as expected. The element
you're unmarshaling is in the "
http://www.w3.org/1999/02/22-rdf-syntax-ns#"; namespace (it has an "rdf"
prefix) but the thing you're unmarshaling it into expects
"http://purl.obolibrary.org/obo/go/subsets/goslim_yeast.owl#"; because you
put that in the tag.

If you change the namespace in the struct to the correct one everything will 
work.

—Sam

On Sun, Dec 13, 2020, at 22:25, 'Dan Kortschak' via golang-nuts wrote:
> I'm needing to consume some XML which has a namespace
> identifier reused.

-- 
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 web visit 
https://groups.google.com/d/msgid/golang-nuts/cefacd09-2b91-407e-939e-22b920969644%40www.fastmail.com.


[go-nuts] Good books to learn Golang deeply?

2020-12-14 Thread Facundo Yuffrida
I'm looking for recommended books to learn Golang deeply and also some 
writer to follow his books and his line of thinking.

-- 
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 web visit 
https://groups.google.com/d/msgid/golang-nuts/a32202f9-c06d-449b-9e28-241f64e47b49n%40googlegroups.com.


Re: [go-nuts] Good books to learn Golang deeply?

2020-12-14 Thread Dhruvil Dave
I really liked "The Go Programming Language" by Alan Donovan and Brian
Kernighan. They go through it all with quite a detailed approach.

On Mon, Dec 14, 2020, 23:15 Facundo Yuffrida 
wrote:

> I'm looking for recommended books to learn Golang deeply and also some
> writer to follow his books and his line of thinking.
>
> --
> 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 web visit
> https://groups.google.com/d/msgid/golang-nuts/a32202f9-c06d-449b-9e28-241f64e47b49n%40googlegroups.com
> 
> .
>

-- 
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 web visit 
https://groups.google.com/d/msgid/golang-nuts/CAEeBcLAOrDxm9ak1E%3DyrnwYm5zQgX%3D%3DURSO98Zu59ju5x9XHNg%40mail.gmail.com.


Re: [go-nuts] using the xml package with data with complex name spacing

2020-12-14 Thread 'Dan Kortschak' via golang-nuts
On Mon, 2020-12-14 at 13:53 +, Sam Whited wrote:
> In the example you provided it is working as expected. The element
> you're unmarshaling is in the "
> http://www.w3.org/1999/02/22-rdf-syntax-ns#"; namespace (it has an
> "rdf"
> prefix) but the thing you're unmarshaling it into expects
> "http://purl.obolibrary.org/obo/go/subsets/goslim_yeast.owl#"; because
> you
> put that in the tag.
> 
> If you change the namespace in the struct to the correct one
> everything will work.
> 
> —Sam

Thanks, Sam. I figured it would be something simple like that.

I ended up skirting the issue; I do start with parsing the token stream
and then using the Decoder.DecodeElement on specific start elements
(for reasons entirely unrelated to the original questions).

Dan


-- 
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 web visit 
https://groups.google.com/d/msgid/golang-nuts/6f77aef8da7260a47cbb8e428b0bfb074100403a.camel%40kortschak.io.


[go-nuts] Go Devroom at FOSDEM 2021

2020-12-14 Thread Maartje Eyskens
Hi gophers!

As every year we're planning a Go Devroom at FOSDEM, despite the current 
situation 2021 won't be different. This year FOSDEM will be held online on 
February 6th 2021.

This year we're looking for speakers who want to deliver a live or 
per-recorded talk as well as many volunteers to help us run the conference.

If you'd like to join us please follow the instructions here: 
https://github.com/go-devroom/cfp

Cheers,
Maartje Eyskens
Francesc Campoy

[image: PYzup3zX.jpg]

-- 
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 web visit 
https://groups.google.com/d/msgid/golang-nuts/6a6dd5cc-639e-4535-ac1d-6f3aa2d68907n%40googlegroups.com.


[go-nuts] Re: Good books to learn Golang deeply?

2020-12-14 Thread jake...@gmail.com
Two previous posts on this topic:
https://groups.google.com/g/golang-nuts/c/chxehZ29uOQ/m/0DeZBJiMCAAJ
https://groups.google.com/g/golang-nuts/c/hU_cLsp1r70/m/NvIcU-KcCAAJ

You might also find some interesting ideas in:
https://groups.google.com/g/golang-nuts/search?q=subject%3Alearn

On Monday, December 14, 2020 at 12:45:50 PM UTC-5 Facundo Yuffrida wrote:

> I'm looking for recommended books to learn Golang deeply and also some 
> writer to follow his books and his line of thinking.

-- 
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 web visit 
https://groups.google.com/d/msgid/golang-nuts/6a35942b-ce2b-43e1-abeb-ae5d7131f48bn%40googlegroups.com.


[go-nuts] Purpose of pattern in muxEntry

2020-12-14 Thread Amit Saha
Hi all, the ServerMux struct is currently defined as:

type ServeMux struct {
// other fields
m map[string]muxEntry
}


The muxEntry is then defined as:

type muxEntry struct { 
h Handler 
pattern string 
}

Is there any reason for also storing the pattern in the muxEntry since it 
*seems* like the lookup only happens using the key in the map of ServeMux?

Thanks for any insights.


Best Regards,
Amit


-- 
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 web visit 
https://groups.google.com/d/msgid/golang-nuts/0e8090ca-de72-4a18-9c71-7d021f326ed7n%40googlegroups.com.