-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Enhance code documentation and clarity
Improve documentation across multiple packages to enhance code readability and maintainability. Add package-level comments, function descriptions, and inline explanations for key components. Clarify variable names and refine error handling to provide more context. These changes aim to make the codebase more self-explanatory and easier for developers to understand and maintain.
- Loading branch information
Showing
4 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
// Package writer provides interfaces and implementations for writing processed shot data to various output formats. | ||
package writer | ||
|
||
import "albatross/internal/models" | ||
|
||
// Writer interface defines the method that any writer should implement | ||
// Writer interface defines the method that any writer should implement. | ||
// This interface allows for different output formats to be used interchangeably, | ||
// following the Strategy pattern. | ||
type Writer interface { | ||
// Write takes a filename and a slice of ProcessedShotData, and writes the data to the specified file. | ||
// The exact format of the output is determined by the specific implementation of the Writer interface. | ||
// It returns an error if the writing process encounters any issues. | ||
Write(filename string, data []models.ProcessedShotData) error | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters