From 52635729b3a30e401933ebd26a262f1fd64f312d Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sat, 23 Sep 2023 04:46:12 +0900 Subject: [PATCH] github.com/reiver/go-fck -> sourcecode.social/reiver/go-erorr --- README.md | 20 +++++++++++--------- error.go | 2 +- errorf.go | 2 +- go.mod | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4da9fd5..1bb5610 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,26 @@ -# go-fck +# go-erorr -Package **fck** implements tools to create and manipulate errors. +Package **erorr** implements tools to create and manipulate errors. + +(This package used to be called "fck".) ## Documention -Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-fck +Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-erorr -[![GoDoc](https://godoc.org/github.com/reiver/go-fck?status.svg)](https://godoc.org/github.com/reiver/go-fck) +[![GoDoc](https://godoc.org/sourcecode.social/reiver/go-erorr?status.svg)](https://godoc.org/sourcecode.social/reiver/go-erorr) ## Creating Errors There are two ways to create errors — -With `fck.Error`: +With `erorr.Error`: ``` - const err error = fck.Error("internal-error") + const err error = erorr.Error("internal-error") ``` -And with `fck.Errorf`: +And with `erorr.Errorf`: ``` - var err error = fck.Errorf("bad value for id %q", id) + var err error = erorr.Errorf("bad value for id %q", id) ``` -**One thing to notice is that `fck.Error` errors can be a Go `const`.** +**One thing to notice is that `erorr.Error` errors can be a Go `const`.** diff --git a/error.go b/error.go index 47000ac..c264bb0 100644 --- a/error.go +++ b/error.go @@ -1,4 +1,4 @@ -package fck +package erorr type Error string diff --git a/errorf.go b/errorf.go index 5470004..7420ce3 100644 --- a/errorf.go +++ b/errorf.go @@ -1,4 +1,4 @@ -package fck +package erorr import ( "fmt" diff --git a/go.mod b/go.mod index e3ed452..4d36a33 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/reiver/go-fck +module sourcecode.social/reiver/go-erorr go 1.17