From 243e2f7dac20999673702a6849c7ee754ce36b6a Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Mon, 11 Dec 2023 23:35:33 +0700 Subject: [PATCH 1/6] Docs [Golang] [Package] [BannerCLI] - [+] docs(banner.go): update example usage in package documentation - [+] chore(banner.go): update package author information --- bannercli/banner.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/bannercli/banner.go b/bannercli/banner.go index 767b784..8468fee 100644 --- a/bannercli/banner.go +++ b/bannercli/banner.go @@ -1,10 +1,19 @@ // Package bannercli provides functionality to print different styles of banners // to the terminal. These styles include binary representation and simple // animation effects to enhance the visual presentation of CLI applications. -// # bannercli/banner.go -// Example usage: // -// bannercli.PrintTypingBanner("ChatGPT Session Exporter", 100*time.Millisecond) +// # Example Usage +// +// func main() { +// // ... existing code ... +// +// // Display a binary banner +// banner.PrintTypingBanner("ChatGPT Session Exporter", 100*time.Millisecond) +// // Optionally, display an typing animated banner +// banner.PrintAnimatedBanner("ChatGPT Session Exporter", 3, 200*time.Millisecond) +// +// // ... rest of your main function ... +// } // // Copyright (c) 2023 H0llyW00dzZ package bannercli From bc80dc77291faeb5e826cb4993034c8d6547ddb1 Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Mon, 11 Dec 2023 23:42:26 +0700 Subject: [PATCH 2/6] Docs [Golang] [Package] [BannerCLI] - [+] chore(banner.go): remove duplicate copyright comments - [+] docs(banner.go): add note about typing simulation in PrintTypingBanner function --- bannercli/banner.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bannercli/banner.go b/bannercli/banner.go index 8468fee..e6eb999 100644 --- a/bannercli/banner.go +++ b/bannercli/banner.go @@ -1,3 +1,5 @@ +// Copyright (c) 2023 H0llyW00dzZ +// // Package bannercli provides functionality to print different styles of banners // to the terminal. These styles include binary representation and simple // animation effects to enhance the visual presentation of CLI applications. @@ -14,8 +16,6 @@ // // // ... rest of your main function ... // } -// -// Copyright (c) 2023 H0llyW00dzZ package bannercli import ( @@ -27,8 +27,6 @@ import ( // PrintBinaryBanner prints a binary representation of a banner. // Each character of the message is converted into its binary form. // Spaces between words are widened to enhance readability. -// -// Copyright (c) 2023 H0llyW00dzZ func PrintBinaryBanner(message string) { banner := strings.ReplaceAll(message, " ", " ") for _, char := range banner { @@ -41,8 +39,6 @@ func PrintBinaryBanner(message string) { // horizontally across the terminal. The animation repeats the number of times // specified by the `repeat` parameter with a delay between each frame as // specified by the `delay` parameter. -// -// Copyright (c) 2023 H0llyW00dzZ func PrintAnimatedBanner(message string, repeat int, delay time.Duration) { for r := 0; r < repeat; r++ { for i := 0; i < len(message); i++ { @@ -57,7 +53,7 @@ func PrintAnimatedBanner(message string, repeat int, delay time.Duration) { // // Each character appears sequentially with a delay, simulating a typing effect. // -// Copyright (c) 2023 H0llyW00dzZ +// Note: This simulation typing just like a human would type. func PrintTypingBanner(message string, delay time.Duration) { for _, char := range message { fmt.Printf("%c", char) From beda58ad67f700412a05223266f40bc0584c08d9 Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Mon, 11 Dec 2023 23:42:49 +0700 Subject: [PATCH 3/6] Docs [Golang] [Package] [interactivity] - [+] chore(interactivity.go): add copyright notice - [+] docs(interactivity.go): update package description --- interactivity/interactivity.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interactivity/interactivity.go b/interactivity/interactivity.go index 8a4421d..7213cb0 100644 --- a/interactivity/interactivity.go +++ b/interactivity/interactivity.go @@ -1,3 +1,5 @@ +// Copyright (c) 2023 H0llyW00dzZ +// // Package interactivity provides functions to handle interactive command-line interfaces. // // It includes utilities for prompting users for confirmation and reading their input in a context-aware manner, which allows for graceful From ed5ca3b48eed90568dc540b74d7c8fe33bed8eab Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Mon, 11 Dec 2023 23:44:33 +0700 Subject: [PATCH 4/6] Docs [Golang] [Package] [Exporter] - [+] chore(session.go): add copyright notice to the file - [+] docs(session.go): update package description --- exporter/session.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exporter/session.go b/exporter/session.go index fd9bf65..73bf10e 100644 --- a/exporter/session.go +++ b/exporter/session.go @@ -1,3 +1,5 @@ +// Copyright (c) 2023 H0llyW00dzZ +// // Package exporter provides tools for extracting and converting chat session data // from JSON files into various formats, such as CSV and JSON datasets. // From e62b9ee6ba1a60d5f964cdd166def6adfbba5a08 Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Mon, 11 Dec 2023 23:45:04 +0700 Subject: [PATCH 5/6] Docs [Golang] [Package] [FileSystem] - [+] chore(filesystem): add copyright notice to file_system.go and file_system_mock.go --- filesystem/file_system.go | 2 ++ filesystem/file_system_mock.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/filesystem/file_system.go b/filesystem/file_system.go index e56192d..bdbf33c 100644 --- a/filesystem/file_system.go +++ b/filesystem/file_system.go @@ -1,3 +1,5 @@ +// Copyright (c) 2023 H0llyW00dzZ +// // Package filesystem provides an abstraction over the native file system operations. // // This allows for easy testing and mocking of file system interactions. diff --git a/filesystem/file_system_mock.go b/filesystem/file_system_mock.go index 859df5c..6d765eb 100644 --- a/filesystem/file_system_mock.go +++ b/filesystem/file_system_mock.go @@ -1,3 +1,5 @@ +// Copyright (c) 2023 H0llyW00dzZ +// // Below, the package filesystem (@file_system_mock.go) furnishes a mock implementation of the FileSystem // interface intended for testing. It enables the monitoring of file operations and // the emulation of file system interactions without real disk I/O, showcasing the From a1904f1685846927236b5afe5a7f713e84833aff Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Mon, 11 Dec 2023 23:45:29 +0700 Subject: [PATCH 6/6] Docs [Golang] [Package] [RepairData] - [+] chore(repairdata.go): add copyright notice to repairdata.go file - [+] docs(repairdata.go): add package description for repairdata package --- repairdata/repairdata.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repairdata/repairdata.go b/repairdata/repairdata.go index e08562a..ee54ce5 100644 --- a/repairdata/repairdata.go +++ b/repairdata/repairdata.go @@ -1,3 +1,5 @@ +// Copyright (c) 2023 H0llyW00dzZ +// // Package repairdata provides utilities for transforming JSON data from an old format to a new format. // // It specifically ensures that each session's modelConfig contains a 'systemprompt' field.