[go-nuts] Go 1.19.5 and Go 1.18.10 are released

2023-01-10 Thread announce
Hello gophers,

We have just released Go versions 1.19.5 and 1.18.10, minor point releases.

View the release notes for more information:
https://go.dev/doc/devel/release#go1.19.5

You can download binary and source distributions from the Go website:
https://go.dev/dl/

To compile from source using a Git clone, update to the release with
git checkout go1.19.5 and build as usual.

Thanks to everyone who contributed to the releases.

Cheers,
Carlos and Heschi for the Go team

-- 
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/yXW8-C0XTn25zgu9nsJ3oQ%40geopod-ismtpd-6-0.


Re: [go-nuts] Newbie question

2023-01-10 Thread Daniel Jankins
Thanks!

On Tue, Jan 10, 2023, 10:31 AM wagner riffel  wrote:

> On 1/10/23 11:42, Daniel Jankins wrote:
> > Hi,
> >
> > Why can you update a value in a map struct?
> >
>
> Sort answer, because m["foo"] is not addressable, but you can have the
> desired behavior using a temp variable:
>
> func f() {
> m := make(map[string]struct{ i int })
> x := m["foo"]
> x.i = 42
> m["foo"] = x
> }
>
> BR.
> -- w
>
>

-- 
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/CACHdq70GYSHQTVVAe5FwWiURxwyBrqdQDdw9HPK8BT36z-R9UA%40mail.gmail.com.


Re: [go-nuts] Newbie question

2023-01-10 Thread 'wagner riffel' via golang-nuts

On 1/10/23 11:42, Daniel Jankins wrote:

Hi,

Why can you update a value in a map struct?



Sort answer, because m["foo"] is not addressable, but you can have the 
desired behavior using a temp variable:


func f() {
m := make(map[string]struct{ i int })
x := m["foo"]
x.i = 42
m["foo"] = x
}

BR.
-- w

--
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/dba18fd2-55cc-148b-48b2-6ae8ba90aa29%40104d.net.


[go-nuts] Newbie question

2023-01-10 Thread Daniel Jankins
Hi,

Why can you update a value in a map struct?

 // UnaddressableFieldAssign occurs when trying to assign to a struct field

// in a map value.
//
// Example:
//  func f() {
//  m := make(map[string]struct{i int})
//  m["foo"].i = 42
//  }

I am reading a yaml file and want to change some values in the struct.
Thank s
-- 
DanJ

-- 
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/CACHdq72hMxFUv71AB9YGNx%3DwjUWxyoth2%3DoxbzxiQhyvf1mnzg%40mail.gmail.com.


[go-nuts] Re: Help Bootstrapping to ESXi

2023-01-10 Thread Brian Candler
"Bootstrapping go" means "building the go compiler toolchain from 
scratch".  You almost certainly don't want to do this.  This is something 
you'd normally only attempt if there is not a suitable go binary 
distribution available for your system.

Go needs to run under an operating system. ESXi emulates a PC as a "virtual 
machine", but you cannot boot a PC directly into Go: that is, Go does not 
run on "bare metal".  So with ESXi you first need to create a VM, install 
an operating system inside it, and then you install Go inside that.

For example, if you installed a Linux VM under ESXi, then inside that VM 
you can install the Linux distribution of Go, which you can download 
from  https://go.dev/dl/.  Ditto if you chose to install a FreeBSD or 
Windows VM - you simply download the FreeBSD or Windows distribution of Go.

On Monday, 9 January 2023 at 23:58:56 UTC mi...@newclarity.net wrote:

> Is your ESXi server not running an Intel x86 processor?  That is what the 
> article is about.
>
> Also, what OS is your guest VM running?  
>
> -Mike
>
> On Monday, January 9, 2023 at 4:20:15 PM UTC-5 brett@gmail.com wrote:
>
>> Good afternoon, hoping to get a little help.
>>
>> I am trying to build a bootstrap candidate that allows me to build and 
>> run go programs on an ESXi server.
>>
>> I am following this 
>> 
>>  blog, and the issue is that my bootstrap candidate doesn't contain the 
>> go binary in the bin directory that is required when running all.bash.
>>
>> Any help would be greatly appreciated.
>>
>

-- 
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/0ea77641-1061-4b9b-96f9-2c7f6f1f1790n%40googlegroups.com.