Re: [go-nuts] How to encode/decode string to binary in golang

2023-03-13 Thread Alex Howarth
o raw binary and then decode the raw > binary > back to s1 and s2. > > > On Friday, March 10, 2023 at 11:36:09 PM UTC+2 Alex Howarth wrote: > >> If s1 and s2 are a fixed length then you can just slice up the decoded >> string based on the lengths. If they are of a vari

Re: [go-nuts] How to encode/decode string to binary in golang

2023-03-10 Thread Alex Howarth
If s1 and s2 are a fixed length then you can just slice up the decoded string based on the lengths. If they are of a variable length, you'll need a separator in the input string to later split on when decoded (s3 := s1 + ":" + s2 etc)? On Fri, 10 Mar 2023 at 10:33, Van Fury wrote: > Hi, > > I ha

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 kno

Re: [go-nuts] Modules... why it has to be so painfull?

2021-04-07 Thread Alex Howarth
Have you tried go mod edit -replace github.com/foo/bar=/path/to/local/bar ? https://golang.org/ref/mod#go-mod-edit On Wed, 7 Apr 2021 at 17:31, Slawomir Pryczek wrote: > > Hey Guys, I'm struggling with the new "modules" approach and after checking several help files it seems it's inconvinient be

Re: [go-nuts] Go code review site?

2021-04-04 Thread Alex Howarth
You could try the Slack channel #reviews on gophers.slack.com -alex On Sun, 4 Apr 2021, 09:20 Tong Sun, wrote: > I remember I've been to a page/site where people can ask for review for > their open source projects, commits, etc. > > Is there such site/service, or my memory has fainted (e.g., it