Return pointer instead of object

This commit is contained in:
Layla 2020-12-27 00:16:24 -05:00
parent 12099a2847
commit 01b75eb567
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,6 @@ import "github.com/josephbmanley/OpenSkins-Common/datatypes"
type Skinstore interface {
Initialize() error
GetSkin(string) (datatypes.Skin, error)
GetSkin(string) (*datatypes.Skin, error)
AddSkin(string, []byte) error
}

View File

@ -4,6 +4,6 @@ import "github.com/josephbmanley/OpenSkins-Common/datatypes"
type Userstore interface {
Initialize() error
GetUser(uid string) (datatypes.User, error)
GetUser(uid string) (*datatypes.User, error)
SetUser(datatypes.User) error
}