JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • GoDoc-style comments: how to write them so people actually read them

    Go SELF
    36 level,0 lecture
    We break down how to write doc comments in Go so that the documentation is genuinely useful: how a comment “binds” to a declaration, why the first line should start with the name ( ParseID, etc.), how to capture the contract and error behavior ( error != nil), how to document types and invariants, and how to use markers like Deprecated: and BUG(who):, as well as how to format paragraphs and mini-examples in GoDoc.
    Open
  • doc.go and package documentation

    Go SELF
    36 level,1 lecture
    We break down how package documentation works in Go: what a package comment is, why the first sentence becomes the synopsis on pkg.go.dev, why a separate doc.go file is used, what to write in it (purpose, boundaries, API map), and which common mistakes break the “package page” (comment in the wrong place, overly generic wording, mixing documentation and logic).
    Open
  • README as the project interface

    Go SELF
    36 level,2 lecture
    We break down why README is the interface of your repository and the “first screen” for people: what it must answer (what it is, quick start, examples, code map, constraints), how to make a Quickstart in 60 seconds, how to align the text with the real behavior of the code and avoid overpromising. As an example, we use the educational CLI project Tasky in Go 1.25+ with the structure cmd/tasky and internal/todo, the commands add/ list/ done, and a Mermaid data-flow diagram.
    Open
  • Example‑tests as documentation

    Go SELF
    36 level,3 lecture
    We break down Example‑tests in Go as “living documentation”: where they live ( *_test.go), how they run via go test, how output checking works via // Output:, how Example... names are bound to GoDoc, and how to write examples so they are deterministic and don’t break because of time, map, or someone else’s error text.
    Open
  • go generate: benefits, transparency

    Go SELF
    36 level,4 lecture
    We break down how go generate works: the //go:generate directive, explicit generator execution, separating the phases “edit the sources” and “generate code”, and a practical case using stringer to generate the String() method for enum-like constants. Separately, we discuss determinism, committing generated files to the repository, and common organizational mistakes.
    Open
Learn
  • Registration
  • Java course
  • Help with tasks
  • Pricing
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Activities
Company
  • About us
  • Contacts
  • Reviews
  • FAQ
  • Support
JavaRushJavaRush — is an interactive online course for learning Java programming from scratch. It contains 1200 practical tasks with one-click solution checking, the necessary minimum of theory on Java basics, and motivating features that help you complete the course: games, quizzes, interesting projects and articles on effective learning and the career of a Java developer.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush
MastercardVisa
"Programmers are not born" © 2026 JavaRush