func (m UserRepository) GetByID(id int) *User { var user = User{ID: id} has, _ := engine.Get(&user) if has { return &user } return nil }
funcの後ろの「(m UserRepository)」の箇所がよくわかりません
回答1件
あなたの回答
tips
プレビュー
投稿2016/11/23 11:38
func (m UserRepository) GetByID(id int) *User { var user = User{ID: id} has, _ := engine.Get(&user) if has { return &user } return nil }
funcの後ろの「(m UserRepository)」の箇所がよくわかりません
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/11/23 12:07
2016/11/23 12:40