mirror of
https://github.com/beego/bee.git
synced 2025-07-09 09:50:19 +00:00
go lint
This commit is contained in:
@ -59,7 +59,7 @@ func init() {
|
||||
|
||||
func runDocs(cmd *Command, args []string) int {
|
||||
if isDownload == "true" {
|
||||
downloadFromUrl(swaggerlink, "swagger.zip")
|
||||
downloadFromURL(swaggerlink, "swagger.zip")
|
||||
err := unzipAndDelete("swagger.zip", "swagger")
|
||||
if err != nil {
|
||||
fmt.Println("has err exet unzipAndDelete", err)
|
||||
@ -77,7 +77,7 @@ func runDocs(cmd *Command, args []string) int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func downloadFromUrl(url, fileName string) {
|
||||
func downloadFromURL(url, fileName string) {
|
||||
fmt.Println("Downloading", url, "to", fileName)
|
||||
|
||||
output, err := os.Create(fileName)
|
||||
|
Reference in New Issue
Block a user