package
0.5.36
Repository: https://github.com/devlights/try-golang.git
Documentation: pkg.go.dev

# README

サンプルリスト

このディレクトリには以下のサンプルがあります。

fileexample namenote
error_basic.goerror_basicerror のハンドリングについてのサンプル
error_sentinel.goerror_sentinelGoにおけるエラー処理イディオムの sentinel error check についてのサンプルです.
error_typeassertion.goerror_typeassertionGoにおけるエラー処理イディオムの type assertion check についてのサンプルです.
error_wrap_unwrap.goerror_wrap_unwrapGoにおけるエラー処理にてエラーを内包するやり方についてのサンプルです。
error_is_and_as.goerror_is_and_aserrors.Is(), errors.As() のサンプルです。
error_wrap_multiple_error.goerror_wrap_multiple_errorGo 1.20 で導入された %w を複数指定できるようになった機能のサンプルです。

# Functions

Basic -- error のハンドリングについてのサンプル REFERENCES:: - https://github.com/robpike/ivy/blob/master/ivy_test.go - https://stackoverflow.com/questions/9371031/how-do-i-create-crossplatform-file-paths-in-go - https://qiita.com/andromeda/items/c5195307cd08537d4fad.
ErrorJoin は、Go 1.20 で追加された errors.Join のサンプルです.
ErrorJoinErrorsAs は、Go1.20から追加された errors.Join() と errors.As() の関係性についてのサンプルです.
ErrorJoinFmtErrorf は、Go1.20から追加された複数エラーを纏める機能が追加されたfmt.Errorfのサンプルです.
IsAndAs -- errors.Is(), errors.As() のサンプルです。 # REFERENCES - https://pkg.go.dev/[email protected] - https://zenn.dev/msksgm/articles/20220325-unwrap-errors-is-as.
NewRegister -- このパッケージ用のサンプルを登録する mapping.Register を生成します。.
Sentinel は、Goにおけるエラー処理イディオムの sentinel error check についてのサンプルです.
TypeAssertion は、Goにおけるエラー処理イディオムの type assertion check についてのサンプルです.
WrapAndUnwrap は、Goにおけるエラー処理にてエラーを内包するやり方についてのサンプルです。 REFERENCES:: - https://medium.com/onefootball-locker-room/a-look-at-go-1-13-errors-9f6c9f6accb6.
WrapMultipleError は、Go 1.20 で導入された %w を複数指定できるようになった機能のサンプルです。 # REFERENCES - https://future-architect.github.io/articles/20230126a/ - https://tip.golang.org/doc/go1.20#errors.

# Variables

ErrSentinel -- sentinel error check.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author