diff options
| author | Jeff Carr <[email protected]> | 2025-10-21 09:21:53 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-21 09:21:53 -0500 |
| commit | c1600cff482abf314bf66bcf758979969672bfca (patch) | |
| tree | e958c6646d1ff33dabe269148dde9aabb1fb0f02 /errors.go | |
| parent | e734c024bd18ad13e0f5d162dfee256b5e020be7 (diff) | |
housecleaning & dump more old stuff
Diffstat (limited to 'errors.go')
| -rw-r--r-- | errors.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -6,9 +6,13 @@ import ( ) var NotInitialized error = errors.New("your application config not initialized") - var VersionMismatch error = errors.New("your PB version does not match") +var ErrEmpty error = fmt.Errorf("config file was empty") +var ErrMarshal error = fmt.Errorf("protobuf parse error") + +// more complicated errors. good idea or bad idea? + // Finally, declare a package-level variable of your new type. // This is the "sentinel" error that users will compare against. var ErrNotInitialized = NotInitializedError{} |
