Popular Categories
0 0

I’m getting a little annoyed with the fact that every time I use math.Mod I’m having to check if it returned a negative value and then fix it so it’s in line with the modulo function ..

2 weeks ago
13

OAuth2 fail!

Written by
0 0

Trying to get OAuth2 working with the eBay API using the golang.org/x/oauth2 package. I have reduced the problem to the minimal possible demonstration in a gist at https://gist.github.com/tomcam/08460a1b0ed71b48cfd02be0cc3a6592 ..

2 weeks ago
11
0 0

Hi guys, I created with a friend some times ago a neural network library Rprop+ with He-et-al Initialization optimization without using external dependencies. I hope it can be useful for you! Link: https://github.com/bestbug456/gorpropplus ..

2 weeks ago
10
Comments Off on gorpropplus is our rprop implementation with He-et-al Initialization
0 0

TL;DR: New to testing, suggestions? I’m fairly new to Golang (maybe 3 weeks), and coming from Python I’m really loving it. I’ve only really been programming for the past year or so, but now I think ..

2 weeks ago
11
Comments Off on Resources for testing?
0 0

I am testing a gRPC service. Here are two approaches I found to invoke grpc function call from other service: Using NewServiceClient() method to create a new service client and use it to call grpc functions: ..

2 weeks ago
12
Comments Off on I am a little bit confused about it
0 0

I’m building a system using a microservices architecture with gRPC communication between them, but I’m not sure on where to put my proto files. For example, let’s say I have a x.proto ..

2 weeks ago
14
Comments Off on Protobufs organization in microservices
0 0

2.5 years after the start of writing “Go 101”, the book reaches a new milestone. The eBook versions of this book are available now. Many thanks to all contributors of this book for fixing countless ..

2 weeks ago
13
Comments Off on Go 101 eBooks are available now!
0 0

I’m trying to understand the below profile, top says my go program is using 25%+ of my available 16gb of memory. Any help is appreciated. File: goProgram Type: inuse_space Time: May 10, 2019 at 9:19am ..

2 weeks ago
10
Comments Off on Does this Memory Profile mean I have a memory leak?
0 0

So, long story short the JSON blob that I’m trying to parse contains multiple depths of objects like the following: [ "a string", { "fields" } ] How exactly should I go about decoding this, other ..

2 weeks ago
10
Comments Off on Help parsing a weird json structure
0 0

Hello I am trying to properly escape a string in a JSON-LD object that I have on a webpage, but quotes get escaped as “x27” instead of “‘”, which Google considers an error. ..

2 weeks ago
12
Comments Off on Properly escaping JSON-LD in a template
0 0

Hi everyone, Are there any solid libraries for handling audio file conversion, (flac, wav, mp3, etc.) submitted by /u/keqotellasa [link] [comments]

2 weeks ago
10
Comments Off on Question: Audio libraries
0 0

my code -> https://pastebin.com/FZHcFgNV This works fine with fairly low value of “n”, but freezes for large value of n. It seems console expects more inputs. In case you need this large ..

2 weeks ago
16
Comments Off on Need help with taking input of 100000s of int values
0 0

I’m dealing with a corner case in Win32 API programming. It turns out NtQueryObject function can hang if the handle is referencing a synchronous kernel object. I think I came out with a right solution, ..

2 weeks ago
9
Comments Off on Stopping a goroutine gracefully
0 0

https://gist.github.com/kaihendry/8cc3c9a43fcf8ce8e0066c906abf1317 Bonus points for anyone who figures how to get this running in https://play.golang.org/ Is there no escaping creating a mux? https://github.com/kaihendry/count/blob/master/main.go#L26 ..

2 weeks ago
11
Comments Off on Why is httptest.NewServer(http.DefaultServeMux) giving me a 404?
0 0

type Car interface { GetCar(id string) .... } type car struct { name string data data printFormat string } func (c *car) GetCar(id string) { info := c.printFormat(id) fmt.Println(info) } func (c *car) ..

2 weeks ago
11
Comments Off on Mocking a function for testing
0 0

BR Softech is the best Medicine Ordering App Development company with the distinctive ability to offer App for Home Delivery Medicine App and a complete range of medicine ordering app development ..

2 weeks ago
9
Comments Off on Medicine Ordering App Development
0 0

Hello, ​ Trying to write a file with a big buffer (128k) but it seems like it’s writing every 1kb no matter what I chose. f, _ = os.Create("test.txt") out = bufio.NewWriterSize(f, 1024 * 128) ..

2 weeks ago
11
Comments Off on buffered file writer
0 0

Created a library to interface with Salesforce APIshttps://github.com/g8rswimmer/go-sfdc submitted by /u/swmrnerd [link] [comments]

2 weeks ago
18
Comments Off on Salesforce API library
0 0

I have created a go module (we can call it module A for convenience) in $GOPATH. But I haven’t pushed to the remote repo, because I don’t want to merge it to master branch. Now I want to use module ..

2 weeks ago
7
Comments Off on Is there a way to use a go module in GOPATH?
0 0

Hello, I’m trying to learn go, I’ve seen a lot of videos on udemy and so on, but I fail to grasp the idea or I feel like i’m not really learning, I have never done some web programming, ..

2 weeks ago
7
Comments Off on Trying to learn Go
0 0

Go’s approach to error handling is one of its most controversial and misused features. In this article, you’ll learn how Go approaches errors and understand how they work under the hood. 1 points ..

2 weeks ago
13
Comments Off on Error Handling in Go – Gett Engineering
0 0

I previously used to use liquibase for my db migrations while programming in the java world. Their were lots of benefits that we got from using liquibase, one of which was on application bootstarp in spring ..

2 weeks ago
8
Comments Off on Liquibase For DB Migrations
0 0

Do you know how to set a new alarm on both android and ios via Golang/gomobile? submitted by /u/8lall0 [link] [comments]

2 weeks ago
13
Comments Off on Gomobile and alarms
0 0

Hi! I’m trying to solve a simple problem. I have an app, I need to set some “publicUrl” for it. On prod, “publicUrl” comes from .env file, on local I use ngrok to run a http ..

2 weeks ago
13
Comments Off on Which pattern to use or go without any?
0 0

Hi, gophers! I’ve been studying Go recently, and I really fall into it. I’m actually building a GraphQL API with go, It’s quite cumbersome for me to turn off (ctrl-c) and turn on the API every ..

2 weeks ago
7
Comments Off on Can anybody review my code?
0 0

I know it’s not a good idea, but I want to know how to do it. I’ve tried everything I can think of: var parents := [2]string{“Dad”, “Mom”} var Parents := [2]string{“Dad”, ..

2 weeks ago
10
Comments Off on How to Declare/Define a Global String Array?