Discover Packages
github.com/bitsbuster/utils-go
errors
package
Version:
v0.1.6
Opens a new window with list of versions in this module.
Published: Oct 5, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Returns the Web3Error code
If e is not type of Web3Error returns an empty string
Returns the Web3Error message
If e is not type of Web3Error returns an empty string
New returns an error that formats as the given code and text (the message).
Each call to New returns a distinct error value even if the text is identical.
errorString is a trivial implementation of error.
Implements the json.Marshaler interface to control JSON serialization.
Implements the sql.Scanner interface to be able to read it from MySQL
Implements the driver.Valuer interface to be able to insert it into MySQL
Source Files
¶
Click to show internal directories.
Click to hide internal directories.