[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-25 Thread Stuart Davies
Well I can see that I am not getting this. I will carry on coding and see if the understanding I have resolves itself. Thanks for all you contributions. On Monday, 23 September 2019 16:25:30 UTC+1, Stuart Davies wrote: > > Hi. > > > I have been using GO for about a year and I lo

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-23 Thread Stuart Davies
' finds (or not). It seems to fallback, ignoring the replace, if it cannot be found. This would be really informative. Sorry for the log response but I am almost there. I just need some fine detail or clarity. If I am to convince my boss to go for Go I must understand! Regards Stuart On

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-22 Thread Stuart Davies
ard! Stuart On Monday, 23 September 2019 16:25:30 UTC+1, Stuart Davies wrote: > > Hi. > > > I have been using GO for about a year and I love the language and ideas > behind the language. I am also a Java developer for many years, I switched > from Delphi to Java 1, the n

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-19 Thread Stuart Davies
. I am back to coding :-) On Monday, 23 September 2019 16:25:30 UTC+1, Stuart Davies wrote: > > Hi. > > > I have been using GO for about a year and I love the language and ideas > behind the language. I am also a Java developer for many years, I switched > from Delphi to

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-19 Thread Stuart Davies
happens. Thanks Stuart On Monday, 23 September 2019 16:25:30 UTC+1, Stuart Davies wrote: > > Hi. > > > I have been using GO for about a year and I love the language and ideas > behind the language. I am also a Java developer for many years, I switched > from Delphi t

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-18 Thread Stuart Davies
or directory *What do I need to add to example/go.mod to make it use the local pacakges?* On Monday, 23 September 2019 16:25:30 UTC+1, Stuart Davies wrote: > > Hi. > > > I have been using GO for about a year and I love the language and ideas > behind the language. I am also a Java

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-18 Thread Stuart Davies
hat is the correct way to proceed when developing servers that import webserver (ws2/server2.go) and use config and template (without a replace in go.mod) *I am sure I am missing somthing minor. Could you please help.* Regards Stuart On Monday, 23 September 2019 16:25:30 UTC+1, Stuart Davi

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-18 Thread Stuart Davies
he correct way to proceed when developing servers that import webserver (ws2/server2.go) and use config and template (without a replace in go.mod) I am sure I am missing somthing minor. Could you please help. Regards Stuart On Monday, 23 September 2019 16:25:30 UTC+1, Stuart Davies wrote: >

[go-nuts] Re: Extending an array 'The right way'. Guidence needed!

2019-10-17 Thread Stuart Davies
#x27;append' in the end because I wanted to control the growth of the array. It's function is very specific and I wanted to optomise the performance myself. regards Stuart On Tuesday, 15 October 2019 11:16:35 UTC+1, Stuart Davies wrote: > > Hi > > I have a slice backed

[go-nuts] Re: Extending an array 'The right way'. Guidence needed!

2019-10-15 Thread Stuart Davies
devs so it is as good as I am likly to get. Thanks all for your help :-) On Tuesday, 15 October 2019 11:16:35 UTC+1, Stuart Davies wrote: > > Hi > > I have a slice backed by an array. > > My understanding is that I can extend the slice (append) up to the > capacity of the a

[go-nuts] Re: go 1.13.1 (linux x64): Build and Test is slower.

2019-10-15 Thread Stuart Davies
Ok I will just get on with it. I am not is a position to compare performance when there are so many variables. I thought others might have had the same issue and there might be a simple explanation. We can close this discussion. On Tuesday, 15 October 2019 12:07:11 UTC+1, Stuart Davies wrote

[go-nuts] Re: Extending an array 'The right way'. Guidence needed!

2019-10-15 Thread Stuart Davies
Ok I will have a rethink. Is there a way I can control the expansion. I do not want to double the storage each time. I want to be able to control and limit the growth if necessary. Thanks for the assistance. I will re-read the article. On Tuesday, 15 October 2019 11:16:35 UTC+1, Stuart

[go-nuts] Re: Extending an array 'The right way'. Guidence needed!

2019-10-15 Thread Stuart Davies
on. I just want to know the best practices for 'extending' an array of arbitrary type. On Tuesday, 15 October 2019 11:16:35 UTC+1, Stuart Davies wrote: > > Hi > > I have a slice backed by an array. > > My understanding is that I can extend the slice (append) u

[go-nuts] go 1.13.1 (linux x64): Build and Test is slower.

2019-10-15 Thread Stuart Davies
Hi. I use a low spec laptop that I take with me so I can work/play in the coffee shop! Since upgrading go to 1.13 I have noticed a significant slow down (2 to 3 times) in build and build for test especially when debugging. It is still fast compared to other languages I use but I was sooo imp

[go-nuts] Extending an array 'The right way'. Guidence needed!

2019-10-15 Thread Stuart Davies
Hi I have a slice backed by an array. My understanding is that I can extend the slice (append) up to the capacity of the array. After that I do not understand the correct procedure. Append fails when the backing array indexes are exceeded. So I have this temporary piece of code: if p.Line

[go-nuts] Re: Need a Modules for Dummy's Guide. Please help

2019-09-24 Thread Stuart Davies
Wow - Brilliant - Thanks for taking the time to reply. I will need time to digest what you have said and get back to you with any further questions, and any insights I gain along the way. Regards Stuart On Monday, 23 September 2019 21:41:41 UTC+1, Stuart Davies wrote: > > Hi. >

[go-nuts] Re: Unable to post on this subject

2019-09-23 Thread Stuart Davies
> > > I have tried different laptops with Windows and Linux OS. > > > > Don’t know if it’s me of the thread as there is no error details or reason. > > > > Any Ideas? > > > > Regards > > > > Stuart Davies (BT Technology) Senior Sof

[go-nuts] Need a Modules for Dummy's Guide. Please help

2019-09-23 Thread Stuart Davies
Hi. I have been using GO for about a year and I love the language and ideas behind the language. I am also a Java developer for many years, I switched from Delphi to Java 1, the new and exciting language from Sun (a bit like GO is now from Google). In Java we have Maven and Gradle