Lance's Blog
  • Home
  • Tech
  • Jazz
  • Game
  • Author
Sign in Subscribe

golang

A collection of 1 post
golang

golang 编程规范 - 项目目录结构

目录结构 项目的目录结构通常也是门面,内行人通过目录结构基本就能看出开发者是否有经验。 Go 官网并没有给出一个目录结构的标准模板,但是 golang-standards [https://github.com/golang-standards/project-layout] 倒是给出了一个,目录结构如下: ├── api ├── assets ├── build │ ├── ci │ └── package ├── cmd │ └── _your_app_ ├── configs ├── deployments ├── docs ├── examples ├── githooks ├── init ├── internal │ ├── app │ │ └── _your_app_ │ └── pkg │ └── _your_private_lib_ ├── pkg │ └── _your_public_lib_ ├── scripts ├── test ├── third_party ├── tools ├── vendor ├── w
12 May 2022 9 min read
Page 1 of 1
Lance's Blog © 2025
Powered by Ghost