Created
January 19, 2020 13:21
-
-
Save yutakahashi114/9ae0281a654ec5cef7ef133c4c75866e 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
jus := []joinedUser{} | |
err = engine. | |
Join("INNER", subQuery, "users.id = friends.friend_id"). | |
Find(&jus) | |
if err != nil { | |
log.Println(err) | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment