Re: [go-nuts] Minor Omission in List on https://pkg.go.dev/golang.org/x

2023-03-10 Thread 'Sean Liao' via golang-nuts
https://go.dev/issue/56482 - sean On Sat, Mar 11, 2023 at 7:35 AM Ian Lance Taylor wrote: > On Fri, Mar 10, 2023 at 2:54 PM jlfo...@berkeley.edu > wrote: > > > > Shouldn't "term" be included in the list shown on > https://pkg.go.dev/golang.org/x? > > > > Going directly to https://pkg.go.dev/g

Re: [go-nuts] Minor Omission in List on https://pkg.go.dev/golang.org/x

2023-03-10 Thread Ian Lance Taylor
On Fri, Mar 10, 2023 at 2:54 PM jlfo...@berkeley.edu wrote: > > Shouldn't "term" be included in the list shown on > https://pkg.go.dev/golang.org/x? > > Going directly to https://pkg.go.dev/golang.org/x/term appears to work fine. Probably. I believe that there is an explicit list in golang.org/

[go-nuts] Minor Omission in List on https://pkg.go.dev/golang.org/x

2023-03-10 Thread jlfo...@berkeley.edu
Shouldn't "term" be included in the list shown on https://pkg.go.dev/golang.org/x? Going directly to https://pkg.go.dev/golang.org/x/term appears to work fine. Jon -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

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] How to encode/decode string to binary in golang

2023-03-10 Thread Kurtis Rader
Perhaps I have misunderstood your question but doesn't hex.EncodeToString(s1s2Byte) do what you want? On Fri, Mar 10, 2023 at 7:33 AM Van Fury wrote: > Hi, > > I have two hexadecimal string values and would like to concatenate the two > strings and > >1. encode the result to binary >2. d

Re: [go-nuts] "go test": common prefix for errors

2023-03-10 Thread 'Sean Liao' via golang-nuts
implementing a helper/wrapper on your side might be easier, I believe most helpers take the TB interface rather than the concrete T type. also it sounds more like a failure of the application to separate its output streams properly. -- You received this message because you are subscribed to the G

Re: [go-nuts] "go test": common prefix for errors

2023-03-10 Thread 'Patrick Ohly' via golang-nuts
"-v" only changes how the result is presented. It doesn't change the result itself, i.e. it remains unclear which log message indicates the actual failure inside the test. Jason E. Aten schrieb am Freitag, 10. März 2023 um 11:28:56 UTC+1: > Perhaps the -v flag to "go test" would be helpful here

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

2023-03-10 Thread Van Fury
Hi, I have two hexadecimal string values and would like to concatenate the two strings and 1. encode the result to binary 2. decode the resulting binary back to hexadecimal string I did the following but I was finding it difficult to decode the result back. I ignore error check in this c

Re: [go-nuts] "go test": common prefix for errors

2023-03-10 Thread Jason E. Aten
Perhaps the -v flag to "go test" would be helpful here, as in "go test -v". On Friday, March 10, 2023 at 7:27:48 AM UTC Patrick Ohly wrote: > JSON output doesn't help. There's no indication there either that a > certain message is a test failure. That's because t.Error = t.Log + t.Fail. > Attac