Click here to Skip to main content
15,892,927 members
Everything / Programming Languages / Go

Go

Go

Great Reads

by Scott Tattersall
Building a custom-designed PCB for an Internet of Things (IoT), “connected” device from scratch
by Kel_
Building a financial stock explorer app using open-source emitter publish/subscribe, Go and Javascript.
by Lars Paisley
A simple approach to documenting ESB transactions and transformations
by Farhad Reza
This tip describes how we can create a simple window in Go programming language using Win32 API functions.

Latest Articles

by José Cintra
IoT architecture proposal for sensor data acquisition modules using the REDIS database and the GO language
by Bohdan Stupak
Clean architecture example implemented in Go
by Alexey Shtykov
Lot of fancy languages were born and have died since I started working in IT, but a few of them continue their pitiful existance.
by Bohdan Stupak
This article describes a super-minimalistic auth endpoint based on AWS Lambda.

All Articles

Sort by Updated

Go 

28 Nov 2018 by Afzaal Ahmad Zeeshan
Go language and discuss of it as a C-family developer
9 Feb 2023 by Alexey Shtykov
Lot of fancy languages were born and have died since I started working in IT, but a few of them continue their pitiful existance.
12 Feb 2023 by Andre Oosthuizen
Replace the '&' with '/' as per multiple parameters router.GET("/gradegrades:userid/courseid", ggc.GetDatabyUserID)
20 Jan 2024 by angry whopper
you guys have any issue with building dashboard for company using google ads API? i have somehow cannot connect the dots between those the dashboard and the API What I have tried: actually i only adding the API
6 May 2021 by Azeez Khan
package data import "fmt" type Product struct{ ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Price float32 `json:"price"` SKU string `json:"sku"` ...
24 Sep 2022 by blueray453
I understand the concept behind major software architectures. Their pros and cons and when to use what, etc. I can implement these my (hacky) way. But not sure whether it is the optimal way (am i missing some design pattern?). My question is,...
3 Aug 2022 by Bohdan Stupak
This article describes a super-minimalistic auth endpoint based on AWS Lambda.
30 May 2022 by Bohdan Stupak
This article shows how utilizing lazy evaluation and caching can save us from wasteful computation
25 May 2023 by Bohdan Stupak
Clean architecture example implemented in Go
3 Feb 2015 by Cesar Bretana Gonzalez
Hi everyone, due to my previous question to see if there is some golang developer on this network, here is a new one, How can I link gtk with go?, i did download the go-gtk library from github, and followed the readme.md, but didn't work to me, if anyone did this before, please, i need some...
10 May 2018 by Christian Graus
You're using .contains. This is a terrible idea, if you want to be secure, check for equality. My first guess, based on you not telling us anything about your attempts to debug this code, is that HashDecoded is empty or a single character, and thus HashInfo always contains it.
2 May 2019 by Christian Graus
There's no array slice in C. You'd have to create a new array. Visit - The Go Programming Language[^][^] The source code for the visit function is here, so I assume you can work out what it does from here
24 Jul 2018 by Dave Kerr
Patching resources is faster and easier than pulling them and updating the spec wholesale. However, the documentation is a little limited. After some trial and error, I got it working, here's the solution. I thought it might be helpful to share for others!
28 Jun 2021 by Dave Kreskowiak
It's not a fingerprint, or some representation of one, of an actual finger, if that's what you're thinking. It refers to a hash value for the data. But if you want to know what some code is doing, ask the person who wrote it.
1 Dec 2015 by Farhad Reza
This tip describes how we can create a simple window in Go programming language using Win32 API functions.
10 Nov 2016 by Farhad Reza
This article will show you how you can use the OpenGL graphics library in Google's Go language.
14 Dec 2016 by Farhad Reza
In this article, we will quickly overview the Google's Go programming language.
3 Jan 2017 by Fitim Skenderi
Connecting securely to MongoDB by using SSL from GO
1 Oct 2021 by Gerry Schmitz
Treat / define the number as a string in JSON; then convert the string to a long int in code. https://yourbasic.org/golang/convert-int-to-string/
4 Aug 2017 by Govardhanudu Gajula
For google maps i created on API after 2 day this error is coming the google maps api server rejected your request. the provided api key is expired please give the solution for permanent API key Thanks in advance What I have tried: i create key in below link Google Maps Embed API  | ...
25 May 2018 by gptankit
An approach to making better use of cluster error feedback
7 Dec 2022 by Graeme_Grant
I'm not familiar with GO as a language, so I did a quick Google Search: read jwt go - Google Search[^] and can see a number of solutions. Pick one that suits your needs.
21 Jan 2022 by Greg Utas
A serious server will be implemented with synchronous (blocking) sockets. Each socket has a thread that waits for stuff to arrive on its socket. All this thread does is put messages on a work queue that an application thread will service. The...
24 Sep 2022 by Greg Utas
I know of no such thing, although a few might exist for specific domains. Architecture diagrams and books are intended for software architects: that is, people with a reasonable amount of experience developing software. That experience will give...
6 Jun 2021 by ibilalkayy
func Uploadfile(filename, filepath string) { data, err := ioutil.ReadFile(filename) if err != nil { log.Fatal(err) os.Exit(0) } bucket, err := gridfs.NewBucket( CNX.Database("VWS"), ) if err != nil...
30 Jul 2021 by ibilalkayy
base.html {{define "base"}} {{template "title" .}} Home {{if .Loggedin}} ...
21 Jan 2022 by ibilalkayy
db.go func Findaccount(myEmail, myPassword string) bool { collection := Connect.Database("webApp3").Collection("data") collection.FindOne(context.TODO(), bson.M{"email": myEmail}).Decode(&Account) err :=...
20 Nov 2021 by ibilalkayy
func Home(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" { fmt.Fprintln(w, "404 page not found") return } for i := 0; i
11 Dec 2021 by ibilalkayy
controllers.go type List struct { ProductsList []string Description string Link []string Success bool Failure bool } func Home(w http.ResponseWriter, r *http.Request) error { if r.URL.Path != "/" { fmt.Fprintln(w,...
15 Dec 2021 by ibilalkayy
type List struct { Success bool } func Home(w http.ResponseWriter, r *http.Request) error { if r.URL.Path != "/" { return PageError(w, r) } var user List user = List{ Success: true, } if r.Method == "GET" { return...
1 Apr 2021 by ilanail
Hi everyone, I am a new DevOps developer and I need as my first project to build a script (hopefully it will be shown at the end as dashboard) that will return data about the build and deploy times in OpenShift (need the specific data about...
9 Jan 2020 by ilostmyid2
Hi There's a source (camera) which sends notifications (motion alarms) to port 8085 of a server I've subscribed its IP for it. Maybe in such a negotiation I can't call it 'server', but it's our server which serves some other things. I've written two programs for receiving and echoing current...
19 Apr 2017 by Intel
With Intel DAAL, cgo, and SWIG we were able to integrate optimized Cholesky decomposition right in our Go programs.
19 Apr 2017 by Intel
The Developer's Introduction to Intel MKL-DNN tutorial series examines Intel MKL-DNN from a developer’s perspective. Part 1 identifies informative resources and gives detailed instructions on how to install and build the library components.
31 Aug 2017 by Intel
Intel® GO™ SDK Offers Automotive Solution Developers an Integrated Solutions Environment
21 Nov 2019 by Jeremy Likness
Generate a thumbnail for your Hugo posts on the fly, then create a custom short code that uses thumbnails and page data like title and description to embed a post preview to interlink documents.
21 Nov 2019 by Jeremy Likness
A Content Security Policy (CSP) helps prevent a variety of attacks on your site. This article describes how to implement one for a static website when you don't control the headers.
1 Feb 2021 by jfriedman
When you need a janky [unsafe] way to generate communitive hash codes
31 Dec 2023 by JohnKeane
I understand you're encountering an issue with API parameters containing special characters like "/". Here's how to solve it: 1. URL-Encode the Parameter: Before constructing the request URL, encode the "search" parameter value using a URL...
21 Jan 2022 by joshun
return (err == nil) How about this?
11 Dec 2018 by José Cintra
GO Package that encapsulates data and methods to calculate the main measures of a triangle
30 Jan 2024 by José Cintra
IoT architecture proposal for sensor data acquisition modules using the REDIS database and the GO language
25 May 2021 by k5054
There's a number of issues here: Firstly you have if ( c % 2 !==0 ), which probably wants to be if ( c %2 != 0 ). But even correcting that and pushing your code through the Go Playground The Go Playground[^] we get a number of errors: ...
3 Dec 2016 by Kel_
Building a financial stock explorer app using open-source emitter publish/subscribe, Go and Javascript.
16 May 2019 by Kornfeld Eliyahu Peter
To Visual Studio to open the source directly and not a de-compiled (metadata) version, you have to have a project reference... The problem begins when you added the reference to the DLL and not to the project... In this case VS will remember forever that and will always open 'from metadata' even...
1 Aug 2018 by Lars Paisley
A discussion of routing principles in ESBs
12 Feb 2018 by Lars Paisley
A simple approach to documenting ESB transactions and transformations
22 Nov 2015 by Marc Clifton
Each function should answer "how-what-why."
1 Oct 2023 by Member 12780066
Event MainWindowOnClose is not called when I close window: func Initialize_Objects() { MainWindow = *winc.NewForm(nil) MainWindow.OnClose().Bind(MainWindowOnClose) } func MainWindowOnClose(arg *winc.Event) { MainWindow.Close() } What I...
27 Aug 2017 by Member 13380432
Hi, I'm new to coding and want to ask how do you choose a programming language for a project? What are the choosing based on? Most answer I found says it's based on what I need. But I don't know what I need. I just know what I want to build. Let say I want to build an E-commerce website and...
21 Jan 2022 by Member 13489621
Hi, I am developing a multi-client/single-server project that communicates through sockets. Server Go: The main program listens to a new connection, when a client connects to the server it's handled by a goroutine. On the goroutine I have a...
10 May 2018 by Member 13821689
Hello all, I am creating a simple licencing system to help licence my own programs and also to help others via github. I have come across a bug that I don't really understand and am asking for some advice. I will add the client code soon. I also hope to add more advanced features. Basically, ...
8 Apr 2019 by Member 14050287
type Websocket struct { upgrader *websocket.Upgrader CmdProxy proxy.CmdProxy connections map[uint64]map[*websocket.Conn]bool init sync.Once lock sync.Mutex } func (w *Websocket) Upgrade(thingId uint64, wr http.ResponseWriter, r *http.Request) error { w.init.Do(func() { w.connections...
1 Feb 2023 by Member 14760154
I am a new developer , i have a problem about load json result in javascript i have a javascript function to fetch data from API and it was successfull the result is like this { "metadata": { "code": 200, "message":...
12 Feb 2023 by Member 14760154
I am new in gin golang, i want to develop api for get course . but i have a problem in routes.go when i put this func Routes(host string) { var router = gin.Default() router.Use(_c.CORSMiddleware()) router.Use(_c.RequestHeaderMiddleware)...
29 Dec 2023 by Member 14760154
I Have a problem with my API i have an API with format API routes look like this localhost:8081/getdate/param1/:param1/param2/:param2 it was successfully when i just use a paramater with string, but the problem is when parameter should be...
9 Jan 2024 by Member 14760154
I have a query like this var db, err = sql.Open("mssql", connString) if err != nil { log.Println("Open connection failed:", err) } err = db.Ping() if err != nil { log.Println("Cannot connect: ", err) } defer db.Close() if err != nil...
4 Oct 2021 by Member 15378947
Hi, I have been struggling with an issue with the usage of int64 inside a struct. When parsing into Json in Go and from the 17th digits onwards I have noticed that it starts round the int64 up. For example: 2882795323592627689 =>...