parent
dc3bc54468
commit
4f086f2626
@ -1,5 +1,5 @@
|
|||||||
package go_library
|
package go_library
|
||||||
|
|
||||||
func Version() string {
|
func Version() string {
|
||||||
return "1.0.156"
|
return "1.0.157"
|
||||||
}
|
}
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: testing
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/master
|
|
||||||
- refs/pull/*/head
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: test
|
|
||||||
pull: default
|
|
||||||
image: golang:1.11
|
|
||||||
commands:
|
|
||||||
- go get -u golang.org/x/lint/golint
|
|
||||||
- golint ./...
|
|
||||||
- go vet
|
|
||||||
- go test -v -race -coverprofile=coverage.txt -covermode=atomic
|
|
||||||
environment:
|
|
||||||
GOPROXY: https://goproxy.io
|
|
||||||
GO111MODULE: "on"
|
|
@ -0,0 +1,10 @@
|
|||||||
|
package builder
|
||||||
|
|
||||||
|
type Aliased struct {
|
||||||
|
table interface{}
|
||||||
|
alias string
|
||||||
|
}
|
||||||
|
|
||||||
|
func As(table interface{}, alias string) *Aliased {
|
||||||
|
return &Aliased{table, alias}
|
||||||
|
}
|
Loading…
Reference in new issue