-
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.
Merge pull request #43 from kripsy/write-docs
Write docs
- Loading branch information
Showing
48 changed files
with
521 additions
and
90 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,19 +1,28 @@ | ||
// Package app provides core functionalities for the GophKeeper application, | ||
// including build information and utility functions. | ||
package app | ||
|
||
import "fmt" | ||
|
||
// aboutMsg is a constant template for displaying information about the | ||
// GophKeeper application. It includes placeholders for the build version | ||
// and build date. | ||
const aboutMsg = ` | ||
「 GophKeeper 」 | ||
This is an Application with the ability to store your secrets locally, | ||
as well as synchronize between your clients when registering through the server. | ||
Build version: %s Build date: %s | ||
` | ||
|
||
// BuildInfo holds information about the build version and date. | ||
// It is used to display the current version of the application. | ||
type BuildInfo struct { | ||
BuildVersion string | ||
BuildDate string | ||
BuildVersion string // BuildVersion is the current version of the application. | ||
BuildDate string // BuildDate is the date when the current version was built. | ||
} | ||
|
||
// about returns a formatted string containing the application's build version | ||
// and date, providing users with details about the version of GophKeeper they are using. | ||
func about(info BuildInfo) string { | ||
return fmt.Sprintf(aboutMsg, info.BuildVersion, info.BuildDate) | ||
} |
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
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
Oops, something went wrong.