Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Code Review

Questions tagged [go]

Ask Question

Go, commonly referred to as "golang", is a fast, statically typed, compiled language created by Google. The language was initially developed as an alternative to C++ for server infrastructure and has native support for concurrency.

581 questions
Filter by
Sorted by
Tagged with
-2votes
1answer
138views

Pprof Profiling SnapshotI have a critical user facing Go API in which I call an internal API. The API response time is <200ms but the response unmarshalling with goccy JSON is taking 500ms. The ...
user avatar
-1votes
1answer
99views

sorry for my English. I create paysystem. I want to structure the project based on https://github.com/golang-standards/project-layout. I would also like to hear general comments on the code. Thank you ...
David Meyster's user avatar
5votes
2answers
151views

TLDR: First time dev in Go moving from Java and I need feedback on my simple CLI Tool.I wanted to get competent in Go as a very junior developer, so this is my first basic project in go. I set a goal ...
Magd Aref's user avatar
7votes
3answers
1kviews

I am trying to create golang inspired cancellable context in C++ for use in worker threads and other tasks. I have tried to avoid using raw pointers, but ever since I started writing C++ code, I ...
Mahdi Chaari's user avatar
5votes
1answer
146views

I am learning Go by working through programming puzzles.There is shared boilerplate between puzzles that I want to factor out into into some kind of helper structure:Read the input (always the same,...
user289146's user avatar
1vote
0answers
91views

In one of our projects it became rather painful to use the Go standard library'ssync.Map as it lacks type safety, i.e. it became rather tedious to do and check ...
Runxi Yu's user avatar
4votes
1answer
122views

I wrote a small (~350 lines) golang application mainly for fun to explore the language. I was wondering what the standard layout of a little testing tool like this would be from a seasoned golang dev. ...
btolsen131's user avatar
4votes
1answer
113views

I’ve developed a Go program to benchmark a FHIR server by uploading a dataset of FHIR resources concurrently.The goal is to stress-test the server by sending a specified number (...
Martin Hinze's user avatar
1vote
1answer
297views

I am trying to solve the following problem in leetcode.https://leetcode.com/problems/kth-largest-element-in-an-array/descriptionGiven an integer array \$nums\$ and an integer \$k\$, return the \$k^\...
3votes
2answers
231views

I have code that concurrently reads data from a stream, processes elements, and writes the data to another stream. Each of these individual operations may fail, in which case I want processing to halt ...
Will Beason's user avatar
2votes
2answers
175views

I have a scenario where I need to acquire lock on a resource inside a goroutine and release the lock (only once) after a timeout or when the goroutine is done with it's job.I came up with a way to ...
Ram Dittakavi's user avatar
1vote
1answer
70views

I was reading about the implementation of distributed locks where we need to verify the lease using a fencing token as per this article - https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-...
Pratyush Prateek's user avatar
1vote
1answer
161views

I am learning Go and trying to write a Bird design in Go. Here is the code. How can I improve it?bird/bird.go...
coder's user avatar
  • 2,471
4votes
2answers
224views

I have been working on optimizing some code I use for compressing images and linting content in epub files. I originally used cli utilities to help get the job done before moving to using Go code as ...
user avatar
5votes
1answer
297views

I saw this question on one of the socials, presented as an Apple interview question. I have had to paraphrase as it was not given in text format. (Credit: Instagram @greghogg5)Given a string (S) ...

153050per page
1
2345
39

Hot Network Questions

more hot questions
Newest go questions feed

[8]ページ先頭

©2009-2025 Movatter.jp