aboutsummaryrefslogtreecommitdiff
path: root/mal/user.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 10:57:27 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 10:57:27 +0530
commitfff3dadabc321871e6819392efc605c6dffe2e69 (patch)
tree25aceed23b73b2ad975a06d73fad091d0886a2a6 /mal/user.go
parenta44d6eb2fdddc75983c735e1a0fa744014db9593 (diff)
migrated from MAL2Go to mg package
Diffstat (limited to 'mal/user.go')
-rw-r--r--mal/user.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/mal/user.go b/mal/user.go
index c271aab..b9301e0 100644
--- a/mal/user.go
+++ b/mal/user.go
@@ -19,16 +19,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package mal
import (
- u "github.com/MikunoNaka/MAL2Go/v4/user"
+ "vidhukant.com/mg"
"fmt"
"os"
)
-func GetUserInfo() u.UserInfo {
- userInfo, err := userClient.GetSelfUserInfo()
+func GetUserInfo() mg.User {
+ var user mg.User
+ err := MALClient.GetSelfInfo(&user, true)
if err != nil {
fmt.Println("Error fetching User Information:", err)
os.Exit(1)
}
- return userInfo
+ return user
}