Zum Inhalt springen
Kitbay
Einreichen

developer-code-organization

MITAktualisiert am 11. Nov. 20265.616GitHub-Sterne

A long reference for people changing gh-aw's Go code.

Was der Skill vermittelt

A long reference for people changing gh-aw's Go code. It covers how files are organised, patterns to copy and ones to avoid, size limits for files, decision trees for when to create a new file, a worked example of breaking up a large file, conventions for helper files, stubs for WASM build variants, and rules for cleaning and normalising strings. It is specific to the layout of the gh-aw repository.

Funktionen

  • Decide where new Go code belongs in gh-aw
  • Split large Go files following project patterns
  • Write WASM build-variant stubs
  • Apply gh-aw's string normalisation rules