From 7cdb9951de0a368d15a188ee94eaff63888926d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Nieto?= <jose.carlos@menteslibres.net> Date: Thu, 7 Aug 2014 11:33:18 -0500 Subject: [PATCH] Fixing comment formatting for db.Result.Group(). --- main.go | 3 ++- postgresql/result.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index d5490caf..a77c4dd3 100644 --- a/main.go +++ b/main.go @@ -297,7 +297,8 @@ type Result interface { // Discards the initial filtering conditions and sets new ones. Where(...interface{}) Result - // Groups results using a key. + // Used to group results that have the same value in the same column or + // columns. Group(...interface{}) Result // Removes all items within the result set. diff --git a/postgresql/result.go b/postgresql/result.go index 37f1523a..a382b7fc 100644 --- a/postgresql/result.go +++ b/postgresql/result.go @@ -85,7 +85,8 @@ func (self *result) Skip(n uint) db.Result { return self } -// Used to group results that have the same value in the same column or columns. +// Used to group results that have the same value in the same column or +// columns. func (self *result) Group(fields ...interface{}) db.Result { groupByColumns := make(sqlgen.GroupBy, 0, len(fields)) -- GitLab