From 1159d89c4dcd11059cffda004bb64be648c7918d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Feb 2025 19:07:58 +0800 Subject: [PATCH] README.md: Code style --- README.md | 9 +++++++++ diff --git a/README.md b/README.md index 9521d5c50ba7cb9a0c945cc04d6461c4dab97311..6adef53852b4759f4224da49ecf6bbbb4577d5d3 100644 --- a/README.md +++ b/README.md @@ -157,3 +157,12 @@ * We have several Git repo mirrors on a few places: * [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`. -- 2.48.1