Add a script to run 'go vet'

@filbranden 
See my previous snark about go.  Will retool

On Tue, Oct 7, 2014 at 1:55 PM, Tim Hockin <thockin@google.com> wrote:

> Ah, it only works as ./... not as path/...
>
> On Tue, Oct 7, 2014 at 1:54 PM, Joe Beda <notifications@github.com> wrote:
>
>> In hack/vet-go.sh:
>>
>> > +# See the License for the specific language governing permissions and
>> > +# limitations under the License.
>> > +
>> > +
>> > +set -e
>> > +
>> > +source $(dirname $0)/config-go.sh
>> > +
>> > +# Go to the top of the tree.
>> > +cd "${KUBE_REPO_ROOT}"
>> > +
>> > +# Check for `go` binary and set ${GOPATH}.
>> > +kube::setup_go_environment
>> > +
>> > +
>> > +find_code_dirs() {
>>
>> Works for me...
>>
>> $ go vet ./...
>> pkg/api/types.go:276: struct field tag `json:"namespace",omitempty" yaml:"namespace,omitempty"` not compatible with reflect.StructTag.Get
>> exit status 1
>> pkg/api/v1beta1/types.go:266: struct field tag `json:"namespace",omitempty" yaml:"namespace,omitempty"` not compatible with reflect.StructTag.Get
>> exit status 1
>> [snip]
>>
>> --
>> Reply to this email directly or view it on GitHub
>> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1633/files#r18548285>
>> .
>>
>
>