11 lines
160 B
Go
11 lines
160 B
Go
|
package builder
|
||
|
|
||
|
type Aliased struct {
|
||
|
table interface{}
|
||
|
alias string
|
||
|
}
|
||
|
|
||
|
func As(table interface{}, alias string) *Aliased {
|
||
|
return &Aliased{table, alias}
|
||
|
}
|