Skip to content

Instantly share code, notes, and snippets.

View johnson86tw's full-sized avatar
🥝

Johnson johnson86tw

🥝
View GitHub Profile
// web framework
app := echo.New()
// middleware
app.Use(middleware.Logger())
app.Use(middleware.Recover())
// service
accountRepo := accountRepo.NewRepository(pgConn)
as := accountService.NewAccountService(accountRepo)

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.Handle("/", http.FileServer(http.Dir("./public/")))