Skip to content

Instantly share code, notes, and snippets.

View thiagozs's full-sized avatar
:octocat:
Have a nice day

Thiago Zilli Sarmento thiagozs

:octocat:
Have a nice day
View GitHub Profile
@thiagozs
thiagozs / aws-lambda-calculator.go
Created March 15, 2023 21:09
AWS lambda calculator
package main
import (
"flag"
"fmt"
)
type Pricing struct {
Region string
PerRequestPrice float64 // in USD per 1 million requests
@thiagozs
thiagozs / docker_compose.yml
Last active February 17, 2023 20:38
Docker Compose postgre and pgadmin
version: '3.9'
services:
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
PGDATA: /data/postgres
@thiagozs
thiagozs / regexp_schema.go
Created December 13, 2022 14:11
Golang regexp parse schema.rb ruby database
package main
import (
"fmt"
"regexp"
)
func main() {
schema := `
ActiveRecord::Schema.define(version: 2022_12_05_175521) do
@thiagozs
thiagozs / fizzBuzz.go
Created August 19, 2022 22:19
HackerRank FizzBuzz
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
@thiagozs
thiagozs / gradingStudents.go
Created August 19, 2022 22:01
HackerRank gradingStudents
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
"math"
@thiagozs
thiagozs / plusMinus.go
Created August 19, 2022 21:53
HackerRank plusMinus
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
@thiagozs
thiagozs / birthdayCakeCandles.go
Created August 19, 2022 21:36
HackerRank birthdayCakeCandles
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
"sort"
@thiagozs
thiagozs / miniMaxSum.go
Last active August 19, 2022 21:26
HackerRank miniMaxSum
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
"sort"
@thiagozs
thiagozs / staircase.go
Created August 19, 2022 20:33
HackerRank staircase
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
@thiagozs
thiagozs / clean-code-structure.md
Created April 14, 2022 18:01
Clean Code Golang

Clean code structure in golang

by Resotto

  • Good example of Go with Clean Architecture.
  • All kinds of Gophers (newbie to professional).

Package Structure