Re: [go-nuts] Shared Goruntime across different microservices written in GO

2022-09-28 Thread burak serdar
On Wed, Sep 28, 2022 at 11:02 PM Roland Müller wrote: > Microservices are located in containers and making these services to use a > common binary would break the basic idea of microservices. > Not necessarily. A single binary containing multiple services gives the flexibility to be run as a

Re: [go-nuts] Shared Goruntime across different microservices written in GO

2022-09-28 Thread Roland Müller
Microservices are located in containers and making these services to use a common binary would break the basic idea of microservices. Every service is a separate unit that shares only the absolute necessary things for collaboration with other services rather than its implementation. BR, Roland

Re: [go-nuts] How to send bytes of data to struct

2022-09-28 Thread Roland Müller
Following tutorial about usage of encoding/json should address your question. https://tutorialedge.net/golang/parsing-json-with-golang/ BR, Roland Am Sonntag, 25. September 2022 schrieb Vishnu B : > I am new to golang, I have a function that receives the JSON data as bytes(data variable) I want

[go-nuts] Re: VS Code Go intellisense causing problems

2022-09-28 Thread Fuji Nafiul
After searching a lot I couldn't find exact problem and solution. And somehow I saw some were facing **"case-insensitive import collision:"** and it was due to upper-case and lower-case mixture usage in filename. I remembered it seeing in my package name (though this error vanishes sometimes

Re: [go-nuts] Cgo and libclang invalid pointer

2022-09-28 Thread Ryan Chan
Forgot to mention Go version: go version go1.19.1 linux/amd64 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view

Re: [go-nuts] Go generics: type constraint for function or (non-type constraint) interface?

2022-09-28 Thread 'Axel Wagner' via golang-nuts
No and no. On Wed, Sep 28, 2022 at 9:05 PM TheDiveO wrote: > Is there currently a way in Go generics to express a type constraint to > allow only > - any function > - any interface that isn't a type constraint, such as ~int > ? > > -- > You received this message because you are subscribed to

[go-nuts] Go generics: type constraint for function or (non-type constraint) interface?

2022-09-28 Thread TheDiveO
Is there currently a way in Go generics to express a type constraint to allow only - any function - any interface that isn't a type constraint, such as ~int ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

[go-nuts] Re: VS Code Go intellisense causing problems

2022-09-28 Thread 'Robert Findley' via golang-nuts
Hi, Can you follow the instructions at https://github.com/golang/vscode-go/blob/master/docs/troubleshooting.md to try to diagnose the problem? It sounds like your workspace is broken and/or you are having trouble with the language server. Please try troubleshooting, and if you are unable to

Re: [go-nuts] GO API to upload a directory in the github

2022-09-28 Thread Reto
On Tue, Sep 27, 2022 at 09:46:04PM -0700, PK wrote: > I want to write an go script, to upload a folder in the github. Can anyone > please let How I can do this. Depending on what you mean by "upload folder" you can either use git, assuming you meant source code / version tracked stuff or you can

[go-nuts] Cgo and libclang invalid pointer

2022-09-28 Thread Ryan Chan
Hello! I have been playing around with Cgo + libclang, but have recently run into a somewhat opaque "bad/invalid pointer" issue that I was hoping somebody can help me debug. Paste[0] includes: the likely offender in my package (parse.go); a pseduo-example of how its intended usage (main.go);

[go-nuts] Shared Goruntime across different microservices written in GO

2022-09-28 Thread Gladiators Squad
Hi Everyone, is there any way to separate go runtime from go binaries?. So that it can be shared across different micro services written in go. Instead of having separate go run time in each services. Thanks. -- You received this message because you are subscribed to the Google Groups

[go-nuts] Re: GO API to upload a directory in the github

2022-09-28 Thread Amnon
Have a look at https://github.com/go-git/go-git On Wednesday, 28 September 2022 at 05:46:29 UTC+1 princ...@gmail.com wrote: > HI Everyone, > I want to write an go script, to upload a folder in the github. Can anyone > please let How I can do this. Is there any resources available for this. >