| go |
Go |
1.0 |
|
| build |
test |
lint |
lint_arch |
format |
start |
dev |
| go build ./... |
go test ./... |
golangci-lint run |
make lint-arch |
gofmt -w . |
null |
null |
|
| detection |
default |
install_command |
|
|
go |
go mod download |
|
| server_indicators |
cli_indicators |
frontend_indicators |
patterns |
| pattern |
description |
frameworks |
| http.ListenAndServe|http.Server{|.Listen( |
Standard library HTTP server |
|
|
| pattern |
description |
frameworks |
| gin.Default|gin.New |
Gin web framework |
|
|
| pattern |
description |
frameworks |
| chi.NewRouter|chi.NewMux |
Chi router |
|
|
| pattern |
description |
frameworks |
| echo.New() |
Echo web framework |
|
|
| pattern |
description |
frameworks |
| mux.NewRouter |
Gorilla Mux router |
|
|
| pattern |
description |
frameworks |
| fiber.New() |
Fiber web framework |
|
|
|
| pattern |
description |
frameworks |
| github.com/spf13/cobra |
Cobra CLI framework |
|
|
| pattern |
description |
frameworks |
| github.com/urfave/cli |
urfave/cli framework |
|
|
| pattern |
description |
frameworks |
| flag.Parse()|flag.String( |
Standard library flags |
|
|
|
|
| type |
regex |
groups |
frameworks |
| route |
r.(Get|Post|Put|Delete|Patch|Head|Options)\s*(\s*["\x27]([^"\x27]+)["\x27] |
|
|
|
| type |
regex |
groups |
frameworks |
| route |
.(GET|POST|PUT|DELETE|PATCH)\s*(\s*["\x27]([^"\x27]+)["\x27] |
|
|
|
| type |
regex |
groups |
frameworks |
| route |
e.(GET|POST|PUT|DELETE|PATCH)\s*(\s*["\x27]([^"\x27]+)["\x27] |
|
|
|
| type |
regex |
groups |
frameworks |
| route |
.HandleFunc\s*(\s*["\x27]([^"\x27]+)["\x27].*).(Methods)\s*(\s*["\x27]([^"\x27]+)["\x27]) |
|
|
|
| type |
regex |
groups |
frameworks |
| route |
http.HandleFunc\s*(\s*["\x27]([^"\x27]+)["\x27] |
|
|
|
| type |
regex |
groups |
frameworks |
| command |
&cobra.Command\s*{\s*Use:\s*["\x27]([^"\x27\s]+) |
|
|
|
|
|
| list_packages |
import_pattern |
source_extensions |
module_root_file |
| go list -json ./... |
"([^"]+)" |
|
go.mod |
|
| patterns |
| layer |
paths |
description |
| 0 |
| internal/types |
| types |
| domain |
| model |
| entity |
|
Pure types, zero internal imports |
|
| layer |
paths |
description |
| 1 |
| internal/utils |
| utils |
| pkg/utils |
| lib |
|
Utilities, depend only on types |
|
| layer |
paths |
description |
| 2 |
| internal/core |
| core |
| internal/service |
| service |
|
Business logic, depend on types + utils |
|
| layer |
paths |
description |
| 3 |
| internal/handler |
| handler |
| api |
| internal/api |
|
HTTP/gRPC handlers, depend on core |
|
| layer |
paths |
description |
| 4 |
|
Entry points, depend on everything |
|
|
|
| manifest_file |
databases |
services |
env_var_patterns |
| go.mod |
| pattern |
type |
default_port |
| github.com/jackc/pgx|github.com/lib/pq |
postgres |
5432 |
|
| pattern |
type |
default_port |
| github.com/go-sql-driver/mysql |
mysql |
3306 |
|
| pattern |
type |
default_port |
| go.mongodb.org/mongo-driver |
mongodb |
27017 |
|
| pattern |
type |
default_port |
| github.com/go-redis/redis|github.com/redis/go-redis |
redis |
6379 |
|
| pattern |
type |
default_port |
| github.com/mattn/go-sqlite3|modernc.org/sqlite |
sqlite |
0 |
|
|
| pattern |
type |
default_port |
| github.com/segmentio/kafka-go|github.com/IBM/sarama |
kafka |
9092 |
|
| pattern |
type |
default_port |
| github.com/rabbitmq/amqp091-go|github.com/streadway/amqp |
rabbitmq |
5672 |
|
| pattern |
type |
default_port |
| github.com/nats-io/nats.go |
nats |
4222 |
|
| pattern |
type |
default_port |
| github.com/elastic/go-elasticsearch |
elasticsearch |
9200 |
|
|
| pattern |
| os.Getenv("([^"]+)") |
|
| pattern |
| os.LookupEnv("([^"]+)") |
|
| pattern |
| viper.\w+("([^"]+)") |
|
|
|
| template_section |
script_extension |
run_command |
| go-linter |
.go |
go run scripts/lint-deps.go |
|
| file_pattern |
test_pattern |
directory_style |
| ^[a-z][a-z0-9_]*.go$ |
^[a-z][a-z0-9_]*_test.go$ |
snake_case |
|
| github_actions |
| image |
setup_steps |
cache_paths |
| golang:1.22 |
| uses: actions/setup-go@v5
with:
go-version: '1.22' |
|
| ~/go/pkg/mod |
| ~/.cache/go-build |
|
|
|