Skip to content

haiyon/go-starter

Repository files navigation

Go Starter

Start

# go mod
go mod download

# generate
make generate

# run
make run

Technologies

Golang, PostgreSQL / MySQL, Redis, Gin, ent., GraphQL, Swagger 2.0

Project structure

├── cmd
│   └── go-starter         # Main program entry
├── docs                   # Documentation
├── infra                  # Infrastructure configurations
├── internal               # Internal application logic
│   ├── config             # Configuration files
│   ├── data               # Data handling
│   │   ├── ent            # ent ORM related
│   │   ├── graphql        # GraphQL schemas
│   │   ├── schema         # Database schemas
│   │   └── structs        # Data structures
│   ├── graphql            # GraphQL resolvers and types
│   ├── handler            # Request handlers
│   ├── server             # Server-related code
│   │   └── middleware     # Middleware
│   └── service            # Business logic
└── pkg                    # Public packages
    ├── consts             # Constants
    ├── cookie             # Cookie handling
    ├── ecode              # Error codes
    ├── encrypt            # Encryption
    ├── jwt                # JWT handling
    ├── log                # Logging
    ├── nanoid             # NanoID generation
    ├── resp               # Response handling
    ├── slug               # Slug generation
    ├── time               # Time utilities
    ├── types              # Type definitions
    ├── util               # Utility functions
    ├── uuid               # UUID generation
    └── validator          # Validators

Documentation

For full documentation, visit https://domain.com.

Maintainers

@Shen

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •