From 4b88eacb6aceb5d3f50a1a1c88cc18ee5809120b Mon Sep 17 00:00:00 2001 From: WeidiDeng Date: Thu, 11 Nov 2021 17:45:51 +0800 Subject: [PATCH] Remove unnecessary import "C" (#1048) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are no C binding in this file. And for users to compile themselves, this line will cause compilation to fail for those who don't need sqlite support. 移除不必要的c binding,使用CGO=0时,这行会导致编译失败。禁用CGO会导致sqlite无法使用,但可以方便编译(不需要安装gcc,跨平台编译方便),这点可以在文档中说明。 --- routers/controllers/file.go | 1 - 1 file changed, 1 deletion(-) diff --git a/routers/controllers/file.go b/routers/controllers/file.go index 52d4314..21cda34 100644 --- a/routers/controllers/file.go +++ b/routers/controllers/file.go @@ -1,6 +1,5 @@ package controllers -import "C" import ( "context" "fmt"