© 2023 Hashnode
#go
Synopsis Of The Error I encountered this error while learning how to call the code in an external package.While following the tutorial, I ran the following code: package main import ( "fmt" "…
Intro This article assumes that you know how modern email works. Even if you don't, you'll get what the issue was and you also might get some idea by the end of this article. The title might seem unre…
Syntaxt keyword overview There are 6 key topic {{define}} {{template}} {{block ... }} {{end}} {{if }} {{else}} {{if }} {{else}} {{end}} {{with }} {{end}} {{range }} {{else }}{{end}} anything …
Github Actions Login to Docker Hub Syncron terlebih dahulu vscode kita ke github, nanti ada tambahan file YAML yang terbentuk dari membuat workflow Go. Edit file go.yaml Dokumentasi nya di ambil dari …
Maps are Go's built-in associative data type (sometimes called hashes or dicts in other languages). But how do we merge two maps in Go? There is no built-in way, nor any method in the standard package…
Create Dockerfile lihat dokumentasi Docker Images Golang untuk membuat Dockerfile. FROM golang:alpine3.16 WORKDIR /app COPY go.mod ./ COPY go.sum ./ RUN go mod download COPY *.go ./ RUN go build -…
Problem statement An n-bit gray code sequence is a sequence of 2^n integers where: Every integer is in the inclusive range [0, 2^n - 1], The first integer is 0, An integer appears no more than once in the sequence, The binary representa…
gRPC is a way for different software programs to talk to each other over the internet.gRPC is a technology for implementing RPC APIs that uses HTTP 2.0 as its underlying transport protocol. You might …
Hey there! Let's talk about slices in-depth. You may want to check out arrays first, if in case, here's the link to Golang Arrays. Slice In Golang, Slice is just an array data structure but with dynam…
This is the first blog in the series of Concurrency Design Patterns in Golang. I'll be adding more blogs with many complicated design patterns. If you want to be notified do subscribe to my Newsletter…