Исходники и презентации

This commit is contained in:
2025-05-23 07:26:39 +03:00
parent aa948179d5
commit 02d8430a3a
514 changed files with 13773 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package main
import (
"errors"
"fmt"
)
func main() {
err := errors.New("source error")
err = fmt.Errorf("additional error information: %w", err)
err = fmt.Errorf("internal error: %w", err)
fmt.Println(err.Error())
fmt.Println(errors.Unwrap(err))
fmt.Println(errors.Unwrap(errors.Unwrap(err)))
fmt.Println(errors.Unwrap(errors.Unwrap(errors.Unwrap(err))))
}