diff options
author | Michael Muré <batolettre@gmail.com> | 2023-08-14 16:58:06 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2023-08-14 16:58:06 +0200 |
commit | 297e1931a7b5913275e8e9b0a46494d95e7e5e7c (patch) | |
tree | 5c5ef10f66bff4f9e6e3bbe87c70c02940bdbce3 /entities/identity/common.go | |
parent | f0167a1d6068d22af5ffff260e2848f7c14a71b3 (diff) | |
download | git-bug-bootstrap-rework-2.tar.gz git-bug-bootstrap-rework-2.zip |
WIP 2bootstrap-rework-2
Diffstat (limited to 'entities/identity/common.go')
-rw-r--r-- | entities/identity/common.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/entities/identity/common.go b/entities/identity/common.go index 88e30e338..749def636 100644 --- a/entities/identity/common.go +++ b/entities/identity/common.go @@ -3,6 +3,8 @@ package identity import ( "encoding/json" "fmt" + + bootstrap "github.com/MichaelMure/git-bug/entity/boostrap" ) // Custom unmarshaling function to allow package user to delegate @@ -10,7 +12,7 @@ import ( // and a Bare. // // If the given message has a "id" field, it's considered being a proper Identity. -func UnmarshalJSON(raw json.RawMessage) (Interface, error) { +func UnmarshalJSON(raw json.RawMessage) (bootstrap.Identity, error) { aux := &IdentityStub{} // First try to decode and load as a normal Identity |