Re: [go-nuts] atal error: all goroutines are asleep - deadlock!

2025-05-22 Thread thatipelli santhosh
I think need to close errCh, resCh On Thu, May 22, 2025 at 1:44 PM natxo@gmail.com wrote: > hi, > > I do not seem to to get this one to not panic, and do not understand why > yet. > > This code gets the names of files using shell globbing , so go run > testchannels.go dir/* > > This gets th

[go-nuts] Couldn't able to establish Web Socket connection when server and client running as containers in different hosts

2021-02-21 Thread thatipelli santhosh
Hi Everyone, Server and client both are developed in go. I am using *github.com/gorilla/websocket *library to establish a web socket connection. My server is running on port 8080 as docker container and my client (cli tool) is running as docker container in an

Re: [go-nuts] Re: best way to know executable version without running it

2020-08-19 Thread thatipelli santhosh
Hi Guys Thank you for your response. Consul is go executable. I can get version using /bin/consul version command but I need to find the version using string search in executable file data. I noticed some pattern in executables 1.8.312345156252160h3100043191500ms781258760h94105:***@ => 1.8.3

[go-nuts] best way to know executable version without running it

2020-08-13 Thread thatipelli santhosh
Hi All, What is best way to know a executable version without executing it through golang? I tried with reading the executable file through a scanner and matching every line with regex (like ngnix regx) but this is not working for all executables. Do you have any idea? -- You received this mes

[go-nuts] Pipe multiple commands in golang

2020-08-12 Thread thatipelli santhosh
Hi all, I have requirement to execute a command like cmd : *strings dynamic_file_path | grep regex* I don't know what is the best way to do this like any well known library or standard way. Can you please help here? -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] How to determine system requirements for an application?

2020-07-03 Thread thatipelli santhosh
My thought would be write another program or client to send requests to your k8's deployed app/program to test its limits and determine your optimal solution. I think it is kind of doing a stress testing and go has tools for it. On Sat, Jul 4, 2020, 00:25 smart aquarius wrote: > But as per my u

Re: [go-nuts] Re: Extending an array 'The right way'. Guidence needed!

2019-10-15 Thread thatipelli santhosh
Hi Marvin, I am curious to know if we approx 10 ( we don't know exact amount of slice entries) add to slice. Slice will grow based on our size of data and underlying array size but doing this create multiple underlying arrays (more memory resource utilization, processing). In such case, wha

Re: [go-nuts] Need explaination for code

2019-07-26 Thread thatipelli santhosh
age on Uranus", > planet: "Uranus", > seconds: 3210123456, > expected:1.21, > }) > > [.etc] > > with an append call for each case you want to add. > > The example you provided just streamlines the whole process, and takes > adva

[go-nuts] Need explaination for code

2019-07-26 Thread thatipelli santhosh
Hi , I am learning Go step by step. I have go through with slices and structs but this below code sample is using slices and structs both at a time. Can anyone please explain this piece of code? this would be more helpful to me to understand this. Thank you! var testCases = []struct { descrip