This is a web application for creating and viewing code snippets, similar to GitHub gists
cmd
- contains applications within this project. For example,web
contains the web application, could also have acli
folder if this contained a CLI application as wellinternal
- non-application specific code such as reusable internal libraries or SQL files. This is a special folder name in Go which only allows packages within this directory to be imported by Go code within this project. So if this project were distributed as a package, people who install the package could not import anything frominternal
.html
- HTML templatesstatic
- CSS and JavaScript
Run the application:
go run ./cmd/web/