From 4bf71cc4fd0c3d3bdf0e8d4e1d161a79ddc65b81 Mon Sep 17 00:00:00 2001 From: Leon Zhang Date: Fri, 26 Oct 2018 14:09:47 +0800 Subject: [PATCH] add doc.go fix `go get -d github.com/XiaoMi/soar` error --- doc.go | 18 ++++++++++++++++++ doc/install.md | 2 +- doc/install_en.md | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 doc.go diff --git a/doc.go b/doc.go new file mode 100644 index 0000000..3c347f0 --- /dev/null +++ b/doc.go @@ -0,0 +1,18 @@ +/* + * Copyright 2018 Xiaomi, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// Package soar is a command-line tool for SQL optimizing and rewriting. +package soar diff --git a/doc/install.md b/doc/install.md index daf6302..b4e04ae 100644 --- a/doc/install.md +++ b/doc/install.md @@ -27,7 +27,7 @@ chmod a+x soar ### 生成二进制文件 ```bash -go get github.com/XiaoMi/soar/... +go get -d github.com/XiaoMi/soar cd ${GOPATH}/src/github.com/XiaoMi/soar && make ``` diff --git a/doc/install_en.md b/doc/install_en.md index 95ed373..08363fa 100644 --- a/doc/install_en.md +++ b/doc/install_en.md @@ -11,7 +11,7 @@ chmod a+x soar ## Build From Source ```bash -go get github.com/XiaoMi/soar/... +go get -d github.com/XiaoMi/soar cd ${GOPATH}/src/github.com/XiaoMi/soar && make ``` -- GitLab