Skip to content

Instantly share code, notes, and snippets.

View akshaybharambe14's full-sized avatar
🎯
Focusing

Akshay Bharambe akshaybharambe14

🎯
Focusing
View GitHub Profile
@akshaybharambe14
akshaybharambe14 / go-stdlib-interface-selected.md
Created July 14, 2021 09:43 — forked from asukakenji/go-stdlib-interface-selected.md
Go (Golang) Standard Library Interfaces (Selected)

Go (Golang) Standard Library Interfaces (Selected)

This is not an exhaustive list of all interfaces in Go's standard library. I only list those I think are important. Interfaces defined in frequently used packages (like io, fmt) are included. Interfaces that have significant importance are also included.

All of the following information is based on go version go1.8.3 darwin/amd64.

@akshaybharambe14
akshaybharambe14 / GitCommitEmoji.md
Created July 10, 2021 12:56 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@akshaybharambe14
akshaybharambe14 / expire_workers.go
Created July 3, 2021 06:05
Expire the IDLE worker routines if they don't receive work in specified time/ https://play.golang.org/p/UN-1GGGMfzi
// https://play.golang.org/p/hkAZVC2-H3S
package main
import (
"fmt"
"time"
)
func main() {
// https://play.golang.org/p/6SRS2KScnuu
package main
import (
"fmt"
"sync"
"time"
)
@akshaybharambe14
akshaybharambe14 / pingPong.go
Created June 10, 2020 05:46
Simple Ping Pong in Go with go routines
package main
import (
"fmt"
"time"
)
func main() {
c := make(chan struct{})
@akshaybharambe14
akshaybharambe14 / main.go
Created April 18, 2020 07:51 — forked from creack/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"strconv"
package main
import (
"testing"
"github.com/tidwall/sjson"
"github.com/tidwall/gjson"
)
@akshaybharambe14
akshaybharambe14 / digitCount.go
Created March 10, 2020 17:11
Function to count digits in a number in golang
package main
import (
"fmt"
)
func main() {
fmt.Println(CountDigits(1234454666))
}
@akshaybharambe14
akshaybharambe14 / digitCount.go
Created March 10, 2020 17:11
Function to count digits in a number in golang
package main
import (
"fmt"
)
func main() {
fmt.Println(CountDigits(1234454666))
}
@akshaybharambe14
akshaybharambe14 / profile.jsonc
Created February 16, 2020 08:40
New Windows Terminal profile settings and key bindings.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles": [
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",