Functions go doc.

This commit is contained in:
go-jet 2019-08-14 10:11:43 +02:00
parent 13c671fa3f
commit 4ab9d73a8b
7 changed files with 141 additions and 59 deletions

View file

@ -11,7 +11,7 @@ type Clause interface {
type ClauseWithProjections interface {
Clause
projections() []Projection
projections() ProjectionList
}
type ClauseSelect struct {
@ -19,7 +19,7 @@ type ClauseSelect struct {
Projections []Projection
}
func (s *ClauseSelect) projections() []Projection {
func (s *ClauseSelect) projections() ProjectionList {
return s.Projections
}
@ -172,7 +172,7 @@ type ClauseSetStmtOperator struct {
Offset ClauseOffset
}
func (s *ClauseSetStmtOperator) projections() []Projection {
func (s *ClauseSetStmtOperator) projections() ProjectionList {
if len(s.Selects) > 0 {
return s.Selects[0].projections()
}