Re: [go-nuts] Search for directory named BigZoom and list contents.

2021-05-10 Thread Adam
Hi Kurt - many thanks. I got it - I switched it to pass in the var 'p' instead of info.Name() and it works. Adam On Mon, 10 May 2021 at 04:19, Kurtis Rader wrote: > Hint #1: Note that fs.DirEntry.Name() only contains the final component > of the path: https://golang.org/pkg

[go-nuts] Job Advert

2017-07-24 Thread Adam Alton
dvertising something you do on your newsletter? Thanks, Adam -- Adam Alton Chief Operating Officer adam.al...@makeitsocial.com -- www.makeitsocial.com <https://makeitsocial.com/business?utm_source=mis_footer&utm_medium=email> / @Make_it_Social <https://twitter.com/Make_it

[go-nuts] Writing to multiple addresses using net.UDPConn

2018-01-11 Thread Adam Medziński
How should I create a net.UDPConn structure so I will be able to use WriteTo/WriteToUDP functions with different addresses? Connection created with net.DialUDP will not be right as it is in “connected” state and writing will fail. -- You received this message because you are subscribed to the

[go-nuts] Writing to multiple addresses using net.UDPConn

2018-01-11 Thread Adam Medziński
How should I create a net.UDPConn struct so I will be able to use WriteTo/WriteToUDP functions with different addresses? Connection created with net.DialUDP will not be right as it is in “connected” state and writing to it with different addresses fails. -- You received this message because yo

[go-nuts] PCRE to RE2

2019-07-24 Thread Adam Takahashi
Hello, I currently have a regex in PCRE that is - (.|\r|\n)*?(?=FOO) It reads in a random number of multiple lines of sentences, and stops when it sees the word FOO in all caps. I am have problems converting this to a valid RE2 expression. Any advice would help. Thanks. -- You received t

[go-nuts] Re: TimeZone Query: Time Difference between EST and UTC

2016-09-29 Thread Adam Webb
year and doesn't do daylight savings time. Cheers, Adam On Thursday, 29 September 2016 09:18:03 UTC-6, laxman.v...@gmail.com wrote: > > Hi, > > Google shows difference between EST and UTC as 4 hours whereas go logic > gives 5 hours difference in time. > > https://pl

[go-nuts] How to fork or create a subprocess?

2016-09-29 Thread adam . greenhill
actly what I want to do in Go: #include #include int main() { int pid = fork(); if (pid == 0) { printf("This is the child process.\n"); } else { printf("This is the parent process.\n"); } return 0; } Any assistance would be greatly appreciated! Thanks, Ad

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-24 Thread Adam Langley
(If we just delete it, that may free the name to be squatted on by others. I've no knowledge of how Reddit works but setting a moderation bit or the like might be more effective in shutting it down.) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group

Re: [go-nuts] Streaming deflate - can't reliably read chunks as they arrive instead of the entire stream

2016-07-14 Thread Adam Keeton
> but then it sounds like you're concatenating all of the messages together, I should have mentioned that I reset the websockets buffer after reading from the deflater. A small self-contained example with this code would be tricky with all of the websocket handling stuff in the way. Regardless,

Re: [go-nuts] Streaming deflate - can't reliably read chunks as they arrive instead of the entire stream

2016-07-15 Thread Adam Keeton
continue } if err != nil { break } compData.Reset() } Is there a different implementation of deflate that you think I should try? On Thu, Jul 14, 2016 at 9:30 PM, Nigel Tao wrote: > On Fri, Jul 15, 2016 at 9:14 AM, Adam Keeton wrote: > > A

Re: [go-nuts] Streaming deflate - can't reliably read chunks as they arrive instead of the entire stream

2016-07-20 Thread Adam Keeton
You're right. It wouldn't have worked without the 0x. However, the test data was being dumped from an existing codebase handling websockets that was already appending that to each message. For reference (and since other people have asked me for it), here's the entire sample code with a lin

Re: [go-nuts] Re: Trying to use a Struct with a variable named "type" for JSON

2017-01-29 Thread Adam Bowen
Sweet. Thanks gents. Still fairly new to Golang. I followed Matt's example and was able to get it working. On Sun, Jan 22, 2017 at 6:52 PM, Matt Harden wrote: > Note that you can't use lowercase struct field names with encoding/json > anyway, because fields must be exported for encoding/json to

[go-nuts] Re: x509.ParseECPrivateKey cannot parse ECDSA (256-bit curve) keys generated using openssl ecparams

2017-03-22 Thread adam . woodbeck
Hi Megha, Generate the key in DER format instead of PEM. openssl ecparam -genkey -name secp384r1 -outform der -noout -out key.der You can then read in the file using ioutil.ReadFile() for instance, and pass the byte slice to x509.ParseECPrivateKey(). Adam On Tuesday, April 26, 2016 at 5:07

[go-nuts] Set a SAN otherName using `x509.CertificateRequest`

2017-04-24 Thread Adam Medziński
Is it possible to set a SAN otherName in x509.CertificateRequest structure, so it will be present in the DER encoded output of x509.CreateCertificateRequest ? -- You received

Re: [go-nuts] Set a SAN otherName using `x509.CertificateRequest`

2017-04-25 Thread Adam Medziński
see how to put it there. > > > Janne Snabb > sn...@epipe.com > > On 2017-04-24 18:28, Adam Medziński wrote: > > Is it possible to set a SAN otherName in x509.CertificateRequest > > <https://golang.org/pkg/crypto/x509/#CertificateRequest> str

[go-nuts] Search for directory named BigZoom and list contents.

2021-05-09 Thread Adam C
n a string, but I'm getting: panic: open BigZoom: no such file or directory Any help would be much appreciated - thanks in advance. Adam -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop rec

[go-nuts] Golang JPEG2000 implementation / Gauging community interest in supporting it?

2021-11-04 Thread Adam Koszek
e could probably help with organizing this, pitch in some $$$ too, and manage the work. In case you're a domain expert in search of a cool project, feel free to reply to this post. Thanks, Wojciech Adam Koszek -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Golang JPEG2000 implementation / Gauging community interest in supporting it?

2021-11-05 Thread Adam Koszek
g JPEG2000 DICOMs, but it's a hack. We're fork a process and read converted bytes from STDIN. Go implementation would be much, much nicer. On Fri, Nov 5, 2021 at 3:43 AM Nick wrote: > > Hi Wojciech, > > Quoth Adam Koszek: > > I know it's rather a rare format, yet it&

[go-nuts] RFC: function or interface?

2022-03-31 Thread Adam Pritchard
ring to an interface instead? I’m starting to think I should, but I can’t think of what difference it would make. Any feedback would be appreciated. Adam Pritchard ​ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

[go-nuts] Re: RFC: function or interface?

2022-04-01 Thread Adam Pritchard
could all feel like garbage — we’ll see. I’m also not yet settled on the names of things — I’ll pay more attention to the verb-iness/noun-iness. Thanks again. Adam ​ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fro

Re: [go-nuts] [generics] type constraint for structs

2024-04-03 Thread Adam Manwaring
While this would make some things much easier for me, it seems this would be a pretty fundamental change. Constraints are essentially interfaces and interfaces in Go are defined by behaviors. Structs, on the other hand, are defined by properties. There is no behavior that all structs have that

Re: [go-nuts] Re: VCS Stamping - How To Use It? How to debug failures?

2024-05-13 Thread Adam Kaplan
p and all its topics, 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/ca680397-1497-4b3a-83ce-301c936308c1n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/ca680

Re: [go-nuts] Re: VCS Stamping - How To Use It? How to debug failures?

2024-05-13 Thread Adam Kaplan
3, 2024 at 12:24 PM Adam Kaplan wrote: > Great suggestion Jason - adding `git status` took me in a very unexpected > direction, and ultimately a solution. > > tl;dr if your build's base container image does not use root/uid 0, git > commands won't work unless you ad

[go-nuts] iterator method naming conventions

2024-08-22 Thread Adam Baratz
All funcs that return a Seq2, and separate Values funcs that return a Seq. How come there's this difference? Looking at making an update to some collection types, wondering if it's more appropriate to have a Values method if it's going to return a Seq. Thanks, Adam -- You rece

[go-nuts] Help: Truncating terminal output to fit window

2024-09-11 Thread Adam Labus
I am currently trying to build a charm application where I display the stdout and stderr of a shell program. I am having problems deciding on how I should trim the output to fit my window. What package provides a function that trims text respecting ANSI escape codes, emojis and other special

[go-nuts] Re: gomod is it ok to clone a remote into a local directory ?

2021-05-04 Thread &#x27;Adam Azarchs' via golang-nuts
That's a totally reasonable thing to do, and in fact co-developing two modules the way you are describing is probably one of the best use cases for `replace` directives. Though, keep in mind that replace directives won't actually be honored by any packages which depend on yours (in this exampl

[go-nuts] Statically Typed Context

2022-04-09 Thread &#x27;Adam Berkan' via golang-nuts
me sample code available showing the different approaches we considered: https://github.com/Khan/typed-context/ I realize this is not a wholly uncontroversial idea, but I'd appreciate any feedback. Adam -- You received this message because you are subscribed to the Google Groups &quo

[go-nuts] Shrinking pprof data for PGO through quantization.

2023-11-09 Thread &#x27;Adam Azarchs' via golang-nuts
It's great that we have PGO support in go now, and it's relatively easy to use. One thing that is of mild concern to me is that typically one will be checking the default.pgo file in to the repo, and git is notoriously not great at handling binary blobs that are updated frequently. Its "diff

Re: [go-nuts] Shrinking pprof data for PGO through quantization.

2023-11-17 Thread &#x27;Adam Azarchs' via golang-nuts
t workflow is inconvenient and the gains from zopfli are very small. Anyway that little tool solves my immediate needs so I probably can't justify spending effort on trying to polish or upstream it, but it's probably worth doing at some point. On Thursday, November 9, 2023 at 1:58:43 

[go-nuts] VCS Stamping - How To Use It? How to debug failures?

2024-05-10 Thread Adam Kaplan (He / Him / His)
My team recently started using podman and the UBI9 go-toolset image to containerize our golang apps [1]. We found that if our Dockerfile copied the entire source tree in (including the .git directory), `go build` would fail unless we set the `-buildvcs=false` flag [2]. Since this wasn't happeni

Re: [go-nuts] Re: VCS Stamping - How To Use It? How to debug failures?

2024-12-20 Thread Adam Kaplan (He / Him / His)
It appears this issue was previously reported: https://github.com/golang/go/issues/53532 On Monday, May 13, 2024 at 1:03:22 PM UTC-4 Adam Kaplan wrote: > I forgot to add one more detail - the go-toolset image defaults to running > as user "default" (UID 1001). > > Ad

[go-nuts] Re: Simplify GRPC GraphQL and DB Models into One Source of Truth

2025-04-24 Thread &#x27;Adam Berkan' via golang-nuts
https://gqlgen.com/ can help with the graphql and go model parts. You write a single schema and it helps generate the resolvers and the models. On Wednesday, April 23, 2025 at 1:31:06 PM UTC-6 Rakesh Chowdhury wrote: > Hello Everyone, > > I'm building an api that allows CRUD via GRPC and Notifi

Re: [go-nuts] gollvm build fails

2023-05-25 Thread &#x27;Adam Malcontenti-Wilson' via golang-nuts
Coming here also trying to build gollvm master branch with the same above failure, suggesting that this info and the pinned commits should probably end up in the project's README. On Thursday, February 2, 2023 at 1:05:31 AM UTC+11 Than McIntosh wrote: > Hello, > > The gollvm build with LLVM tip