Remove unnecessary import "C" (#1048)

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,跨平台编译方便),这点可以在文档中说明。
This commit is contained in:
WeidiDeng 2021-11-11 17:45:51 +08:00 committed by GitHub
parent 54ed7e43ca
commit 4b88eacb6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,5 @@
package controllers
import "C"
import (
"context"
"fmt"