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 test | |
| import ( | |
| jsoniter "github.com/json-iterator/go" | |
| "github.com/gofiber/fiber/v2" | |
| ) | |
| var bufferPool = sync.Pool{ | |
| New: func() any { | |
| return new(bytes.Buffer) |
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 config | |
| import ( | |
| "fmt" | |
| "genproto/geo_service" | |
| "os" | |
| "github.com/joho/godotenv" | |
| "github.com/spf13/cast" | |
| ) |
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
| name: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: | |
| - feat/cd | |
| jobs: | |
| build_and_deploy: | |
| runs-on: ubuntu-latest |
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
| name: CI/CD Pipeline for Go Services with PM2 | |
| on: | |
| push: | |
| branches: | |
| - feat/ci | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest |
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 ( | |
| "errors" | |
| "fmt" | |
| "log" | |
| "time" | |
| ) | |
| // Models |
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
| # Don't print a new line at the start of the prompt | |
| add_newline = true | |
| [character] | |
| success_symbol = "[λ](bold fg:129)" | |
| error_symbol = "[λ](bold fg:160)" | |
| [bun] | |
| format = "via [$symbol]($style)" |