sequenceDiagram
App->>Customer: purchase(plan, recurrence)
Customer->>Subcription: constructor(plan, recurrence)
Subcription->>Plan: get_products
Plan-->>Subcription: list of products
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "os" | |
| "runtime/pprof" | |
| ) | |
| var ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "io" | |
| "net/http" | |
| "net/url" | |
| ) | |
| func main() { | |
| // ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func SeedTable(t *testing.T, db *sql.DB, data string) error { | |
| for _, seed := range seeds(data) { | |
| _, err := db.Exec(query(seed)) | |
| if err != nil { | |
| return err | |
| } | |
| } | |
| return nil | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "errors" | |
| "fmt" | |
| "log/slog" | |
| "os" | |
| "os/signal" | |
| "syscall" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "net/url" | |
| import "regexp" | |
| import "fmt" | |
| import "os" | |
| import "encoding/json" | |
| type Username struct { | |
| String string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package middleware | |
| import ( | |
| "net/http" | |
| "strings" | |
| ) | |
| func Method(next http.Handler) http.Handler { | |
| return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |
| if r.Method == http.MethodPost { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # !!!!! | |
| # VEJA A VERSÃO SIMPLIFICADA ABAIXO | |
| # !!!!! | |
| # Change these variables as necessary. | |
| MAIN_PACKAGE_PATH := ./cmd/example | |
| BINARY_NAME := example | |
| # ==================================================================================== # | |
| # HELPERS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Josh's Custom CSS Reset | |
| https://www.joshwcomeau.com/css/custom-css-reset/ | |
| */ | |
| *, *::before, *::after { | |
| box-sizing: border-box; | |
| } | |
| * { | |
| margin: 0; | |
| } |
- branches com nomes de
feature/nome-da-feature,bug/nome-do-bug-fixe assim por diante - bloqueio de commit direto no branch
master - link do Zendesk/Pivotal no PR
- quando atualizar o feature branch desatualizado, utilizar
git merge master - no merge do PR, usar squash and merge
- Remover texto falando sobre "Fixes #issue", que só funciona nas issues do Github