Skip to content

Instantly share code, notes, and snippets.

View mirusky's full-sized avatar

João Victor Santos mirusky

View GitHub Profile
@mirusky
mirusky / simple-rql.go
Last active November 17, 2023 16:08
Golang RQL parser
package main
import (
"bytes"
"encoding/json"
"fmt"
"strings"
)
var (
@mirusky
mirusky / k8s.ingress.locally.yml
Last active March 12, 2023 07:33
Test Ingress Locally
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello
spec:
selector:
matchLabels:
app: hello
version: 2.0.0
replicas: 3
@mirusky
mirusky / Dockerfile
Created April 14, 2022 23:45
Golang Multi-Stage Build
############################
# STEP 1 build static binary
############################
FROM golang:1.18.1-alpine3.15 as builder
WORKDIR /workspace
# Fetch dependencies.
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .