From 1159d89c4dcd11059cffda004bb64be648c7918d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Feb 2025 19:07:58 +0800 Subject: README.md: Code style --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 9521d5c..6adef53 100644 --- a/README.md +++ b/README.md @@ -157,3 +157,12 @@ The forge software serves its own source at `/:/source/`. * [Lindenii Forge itself](https://forge.lindenii.runxiyu.org/lindenii/:/repos/forge/) * [The Lindenii Project's cgit](https://git.lindenii.runxiyu.org/forge.git/) * [Codeberg](https://codeberg.org/lindenii/forge/) + +## Code style + +We follow the Lindenii Project's general code style, which has a few important +deviations from what most people may be used to: + +* We used tabs for indentation everywhere (Go, HTML, CSS, JS, SQL, etc.) +* All names are in `snake_case`; exported identifiers in Go use + `Capitalized_snake_case`. Type identifiers end with `_t`. -- cgit v1.2.3