Skip to content

Wuchieh/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Backend Template

中文 | English

Package name: string_backend_0001

It is recommended to use global replacement of "string_backend_0001" with your own package name before use.

Installed Packages

Features

  • Easy to get started
  • With common methods internal/pkg
  • Built-in simple logger internal/logger
  • Built-in OAuth2

OAuth2 support

  • Line
  • Google
  • Discord

Usage

Initialization

go install github.com/swaggo/swag/cmd/swag@latest
git clone https://github.com/Wuchieh/backend.git
cd backend
go mod tidy

Execution

swag init --parseDependency --parseInternal
go build . -o backend && ./backend

Attention!

internal/web/oauth/oauth.go is for testing only, do not use it directly.

About

golang backend template

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published