Skip to content

Instantly share code, notes, and snippets.

View burakolgun's full-sized avatar
🎯
Focusing

Burak Olgun burakolgun

🎯
Focusing
View GitHub Profile
@burakolgun
burakolgun / human_readable_metrics_handler.go
Created October 10, 2023 19:13
human_readable_metrics_handler - prometheus
package human_readable_metrics_handler
import (
"fmt"
"github.com/gofiber/fiber/v2"
"github.com/prometheus/client_golang/prometheus"
"strings"
)
func EasyReadableMetrics(c *fiber.Ctx) error {
@burakolgun
burakolgun / main.go
Last active February 7, 2020 10:14
csv reader in Golang
package main
import (
"encoding/csv"
"fmt"
"log"
"io"
)
func main() {
package main
import (
"fmt"
"io"
"log"
"net/http"
"github.com/gorilla/mux"
)
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"time"
)
@burakolgun
burakolgun / git lg
Created January 24, 2019 13:48
git log prettier
global config ->
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
var xfunc = paramy => paramy;
alert (xfunc("lambda"));