Skip to content

Conversation

@sttk
Copy link
Owner

@sttk sttk commented Apr 24, 2025

T/O.

@sttk sttk requested a review from Copilot April 24, 2025 12:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

A new README.md file has been added to document the 'errs' package, its usage, and its supported Go versions.

  • Added package description and features
  • Provided installation, usage examples, and test results
  • Documented supported Go versions and licensing
Comments suppressed due to low confidence (2)

README.md:6

  • Consider changing 'its fields represents' to 'its fields represent' for correct verb agreement.
This package provides the structure type `Err` which takes a parameter of any type as a reason of an error. This parameter is typically a structure type, and its name represents the reason, and its fields represents the situation where the error occurred.

README.md:120

  • There appears to be a typo in the type name 'FailToDoSomethong'; it is likely intended to be 'FailToDoSomething'.
case FailToDoSomethong:

@sttk sttk requested a review from Copilot April 24, 2025 12:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds a new README.md to document the usage and features of the errs package for structured error handling in Golang.

  • Introduces detailed usage examples including error creation, type-safe handling, and error notifications.
  • Provides installation instructions and supported Go version test results.
Comments suppressed due to low confidence (1)

README.md:91

  • [nitpick] The printed identifier 'FailToDoWithParam' is inconsistent with the structure name 'FailToDoWithParams'. Consider updating the identifier for clarity and consistency.
fmt.Println(err.Reason())  // => path/to/pkg.FailToDoWithParam { Param1: abc, Param2: 123 }

@sttk sttk requested a review from Copilot April 24, 2025 12:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds a new README.md file that documents the usage, installation, and features of the errs package for error handling in Go.

  • Introduces package overview and feature list
  • Provides code examples for creating and handling errors
  • Details installation instructions and supported Go versions
Comments suppressed due to low confidence (1)

README.md:95

  • There is an inconsistency in the error output; the example shows 'FailToDoWithParam' while the defined type is 'FailToDoWithParams'. Please update the output to match the type name.
fmt.Println(err.Error())   // => github.com/sttk/errs.Err { reason = path/to/pkg.FailToDoWithParam { Param1: abc, Param2: 123 }, file = source_file.go, line = 123, cause = I/O timeout }

@sttk sttk requested a review from Copilot April 24, 2025 12:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the initial README.md file with documentation for the errs package. Key changes include adding project description, installation instructions, usage examples, and test results for supported Go versions.

Comments suppressed due to low confidence (1)

README.md:5

  • [nitpick] Consider changing 'as a reason of an error' to 'as a reason for an error' to improve clarity.
This package provides the structure type `Err` which takes a parameter of any type as a reason of an error.

@sttk sttk requested a review from Copilot April 24, 2025 12:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new README documenting the errs package, its features, usage instructions, installation steps, and supported Go versions.

  • Adds a detailed README with code examples and instructions.
  • Provides clear examples for creating and handling errors, as well as integrating error notification.

@sttk sttk requested a review from Copilot April 24, 2025 12:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new README.md to document the errs package for handling errors in Go programs.

  • Introduces project description and usage examples
  • Provides installation instructions, code examples, and test results
  • Includes license and reference links

@sttk sttk merged commit 4bbde27 into main Apr 24, 2025
21 checks passed
@sttk sttk deleted the add_readme branch April 24, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants