Last active
January 2, 2021 05:01
-
-
Save ilmiawan/21a78bf816be0de7c72fea6c73a33c25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func main() { | |
userClient := NewClient(httpClient, "http://userservice") | |
userSvc := NewService(userClient) | |
user, err := GetUserDetailsByUserID(1) | |
if err != nil { | |
logrus.Errorf("[ERROR] failed fetching user details: %v", err) | |
} | |
fmt.Println("Hallo %s!", user.Name) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment