[go-nuts] Re: macos file provider handling with golang

2021-09-24 Thread 'Carla Pfaff' via golang-nuts
On Friday, 24 September 2021 at 18:00:21 UTC+2 va...@selfip.ru wrote: > Hi. Does anybody knows how to call macos functions from go? > Mostly my question about file provider methods, i want to write > something that works as file provider for macos > https://github.com/progrium/macdriver

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread Alex Howarth
Could you perhaps achieve this with reflect and UnmarshalJSON() ? The following basic example compares against the case-sensitive json tag: https://play.golang.org/p/Oe_tovxe9Ld On Thu, 23 Sept 2021 at 14:23, 'Aaron' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Hi all > > Anyone

Re: [go-nuts] Type Parameters Proposal, few unimportant questions

2021-09-24 Thread Ian Lance Taylor
On Thu, Sep 23, 2021 at 10:07 AM Kamil Ziemian wrote: > > On the beginning of "More on type sets" > (https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md#more-on-type-sets) > we read "These are not additional rules or concepts, but are consequences of > how

Re: [go-nuts] macos file provider handling with golang

2021-09-24 Thread Ian Lance Taylor
On Fri, Sep 24, 2021 at 9:00 AM Vasiliy Tolstov wrote: > > Hi. Does anybody knows how to call macos functions from go? > Mostly my question about file provider methods, i want to write > something that works as file provider for macos Are you looking for https://golang.org/cmd/cgo? See also

[go-nuts] macos file provider handling with golang

2021-09-24 Thread Vasiliy Tolstov
Hi. Does anybody knows how to call macos functions from go? Mostly my question about file provider methods, i want to write something that works as file provider for macos -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru -- You received this message because you are subscribed to the Google

Re: [go-nuts] gollvm for LLVM13

2021-09-24 Thread Khánh Trịnh
Hi, Than, Thanks a lot! It is working now. go version is "unknown" but it is okay. Khanh On Thursday, September 23, 2021 at 3:30:35 AM UTC+8 tnkh...@gmail.com wrote: > I will try that. > Thanks for your support! > Khanh > > > On Wednesday, September 22, 2021 at 10:21:41 PM UTC+8 th...@google.com

Re: [go-nuts] Type Parameters Proposal, few unimportant questions

2021-09-24 Thread Kamil Ziemian
> > You can try out examples online in the go2 playground: > https://go2goplay.golang.org/ > Thank you Brian Candler for the information, I didn't know about go2 playground before. There are so many things that I need to learn about Go. I guess this comment is something that was missed. > I also

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread 'Dan Kortschak' via golang-nuts
On Fri, 2021-09-24 at 11:21 +0100, Ian Davis wrote: > This is not a correct interpretation. In your example the > unmarshaller reads the incoming json. The first key encountered is > "Name" and it matches exactly with the field named and tagged as Name > so that field is assigned the value. The

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread 'Dan Kortschak' via golang-nuts
On Fri, 2021-09-24 at 11:21 +0100, Ian Davis wrote: > This is not a correct interpretation. In your example the > unmarshaller reads the incoming json. The first key encountered is > "Name" and it matches exactly with the field named and tagged as Name > so that field is assigned the value. The

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread Ian Davis
On Fri, 24 Sep 2021, at 10:36 AM, 'Dan Kortschak' via golang-nuts wrote: > On Fri, 2021-09-24 at 10:22 +0100, Ian Davis wrote: >> I was responding to your statement that it doesn't appear to use >> exact match in preference. It does, as the example I gave >> demonstrated. It's not about guarding

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread 'Dan Kortschak' via golang-nuts
On Fri, 2021-09-24 at 10:22 +0100, Ian Davis wrote: > I was responding to your statement that it doesn't appear to use > exact match in preference. It does, as the example I gave > demonstrated. It's not about guarding case. I'll clarify. In the example I posted

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread Ian Davis
On Fri, 24 Sep 2021, at 10:00 AM, 'Dan Kortschak' via golang-nuts wrote: > On Fri, 2021-09-24 at 09:55 +0100, Ian Davis wrote: >> On Fri, 24 Sep 2021, at 9:36 AM, 'Dan Kortschak' via golang-nuts >> wrote: >> > On Fri, 2021-09-24 at 01:03 -0700, Brian Candler wrote: >> > > On Friday, 24 September

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread 'Dan Kortschak' via golang-nuts
On Fri, 2021-09-24 at 09:55 +0100, Ian Davis wrote: > On Fri, 24 Sep 2021, at 9:36 AM, 'Dan Kortschak' via golang-nuts > wrote: > > On Fri, 2021-09-24 at 01:03 -0700, Brian Candler wrote: > > > On Friday, 24 September 2021 at 08:25:31 UTC+1 Brian Candler > > > wrote: > > > > The documentation says

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread Ian Davis
On Fri, 24 Sep 2021, at 9:36 AM, 'Dan Kortschak' via golang-nuts wrote: > On Fri, 2021-09-24 at 01:03 -0700, Brian Candler wrote: >> On Friday, 24 September 2021 at 08:25:31 UTC+1 Brian Candler wrote: >> > The documentation says it prefers exact match over case- >> > insensitive, but example 3

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread 'Dan Kortschak' via golang-nuts
On Fri, 2021-09-24 at 01:03 -0700, Brian Candler wrote: > On Friday, 24 September 2021 at 08:25:31 UTC+1 Brian Candler wrote: > > The documentation says it prefers exact match over case- > > insensitive, but example 3 contradicts that. It seems to be last- > > match that wins. > > > > > > I

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread Brian Candler
On Friday, 24 September 2021 at 08:25:31 UTC+1 Brian Candler wrote: > The documentation says it > prefers exact match over case-insensitive, but example 3 contradicts that. > It seems to be last-match that wins. > > I realise now what they mean now:

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread Brian Candler
Wow, I didn't realise until now that Unmarshal does case-insensitive matching: https://play.golang.org/p/wddrcakLvr_Q The documentation says it prefers exact match over case-insensitive, but example 3 contradicts that. It seems to be last-match that

Re: [go-nuts] Type Parameters Proposal, few unimportant questions

2021-09-24 Thread Brian Candler
On Thursday, 23 September 2021 at 18:07:19 UTC+1 kziem...@gmail.com wrote: > Understand this whole text without running code in compiler is just above > my mediocre (at best) programming skills. Compilers errors are one of mine > favorite teachers. You can try out examples online in the go2