Re: [go-nuts] Unmarshal Json

2017-09-26 Thread Shawn Milochik
Awesome! You're welcome. -- 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.c

Re: [go-nuts] Re: Simple web crawler question. How to avoid crawling visited links?

2017-09-26 Thread Michael Jones
Aaron, this is the simplest change I could make to that program to show you an example. It does what you want. https://play.golang.org/p/Q8pu0l-Yvy It shows what I was saying about replacing a string with a struct of string and int. Depth 1: http://www.whitehouse.gov https://www.whitehouse.gov/

Re: [go-nuts] Unmarshal Json

2017-09-26 Thread Richard Masci
Thank you very much I think that's going to work! On Tue, Sep 26, 2017 at 5:22 PM, Richard Masci wrote: > Hi Shawn, > > Thanks for that... the JSON I gave stripped out a lot from the real JSON > as I didn't want the company information to be out on the public internet. > The JSON is from query

Re: [go-nuts] Unmarshal Json

2017-09-26 Thread Richard Masci
Hi Shawn, Thanks for that... the JSON I gave stripped out a lot from the real JSON as I didn't want the company information to be out on the public internet. The JSON is from querying a server via rest call, and the IP Addresses are other servers that have connected in to this one server to pull i

Re: [go-nuts] Re: Serialized HTTP requests with asynchronous responses

2017-09-26 Thread Donovan Hide
The nonce is intended just to stop replay attacks. It doesn't have to increment with a delta of 1, typically you just use time.UnixNano(). The API is not under my control, I just want to minimise the occurrence of nonces being received out of order by the API. -- You received this message because

Re: [go-nuts] Unmarshal Json

2017-09-26 Thread Shawn Milochik
https://play.golang.org/p/5itvZlhOVr -- 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://gro

SV: [go-nuts] Unmarshal Json

2017-09-26 Thread Michael Banzon
Can it be parsed to a map[string]json.RawMessage (or a more specific type, if the value is a known type)? -- Michael Banzon https://michaelbanzon.com/ Fra: Rich Sendt: 26. september 2017 20:23 Til: golang-nuts Emne: [go-nuts] Unmarshal Json I have a json I have to parse, and in that json one o

[go-nuts] Unmarshal Json

2017-09-26 Thread Rich
I have a json I have to parse, and in that json one of the keys changes depending on the data being generated. For example: { "Servers": { "IPAddress=10.1.1.123": { "name": "DNS Server1", "type": "Apache Webserver" }, "IPAddress=10.1.1.124": { "name": "DNS Server"

[go-nuts] Scope/Context in struct and interfaces design questions

2017-09-26 Thread Denys Koch
Hi all! I need an gopher advice. What is more idiomatic and do you see any problems with my solutions? Problem: I have a repository(persistence layer) for TodoLists. TodoLists usually belongs to a user. My system also have super-user/admin interface which can access all TodoLists. I can imagin

[go-nuts] Re: Serialized HTTP requests with asynchronous responses

2017-09-26 Thread Diego Medina
Hi, Probably not the answer you were expecting, but : > The nonces must be received by the host in ascending order. is going to fail sooner or later, no matter which trick/feature you use. A more robust solution would be to code the server to accept unordered requests and handle them gracefull

Re: [go-nuts] Re: Simple web crawler question. How to avoid crawling visited links?

2017-09-26 Thread Michael Jones
To be sure, examples are a starting place. To crawl to a certain depth, you need to know the depth of each url. That means that the url being passed around stops being "just a string" and becomes a struct with information including at least, the url as a string and the link depth as an integer. Fo

Re: [go-nuts] Best practices for internal repository management

2017-09-26 Thread Russ Cox
On Fri, Sep 22, 2017 at 1:08 PM, wrote: > Hi all, > > I have a question regarding modern best practices for go repositories. As > we are building out services in go, we still have the opportunity now to > refactor the service code pretty dynamically. So now is a good time to > check and see if we

[go-nuts] Re: Go 1.9 is released

2017-09-26 Thread Igor Maznitsa
if you use mvn-golang plugin then since 2.1.6 version it can process missing SDK in the list and since 2.1.7 it will be processing the list correctly because google returns not full list for just request but need some prefix in request -- You received thi

[go-nuts] Re: Go 1.9 is released

2017-09-26 Thread alskiontheweb
Hello, We use a maven plugin to build a complex suite of Go based services. That plugin looks to the XML index provided by https://storage.googleapis.com/golang/ which currently does not include the 1.9 binaries even though they are available. Can someone look into why the 1.9 revs aren't inde

Re: [go-nuts] Re: Bytconv where art thou

2017-09-26 Thread Peter Waller
On 25 September 2017 at 17:43, Amnon Baron Cohen wrote: > https://github.com/golang/go/issues/2632 > Nice link, fun to see that all this discussion has happened before (and no doubt, will happen again!). Reading that thread and related threads, I get the impression that there is not an open iss

[go-nuts] favicon generator

2017-09-26 Thread Joe Blue
drives me nuts making icons for web, desktop and mobiles. anyone know or a generator. prefer using golang :) -- 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 gola