Add example using driverName
This commit is contained in:
committed by
mattn
parent
c0fa5ea6d6
commit
671e666c2e
12
_example/custom_driver_name/Makefile
Normal file
12
_example/custom_driver_name/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
TARGET = custom_driver_name
|
||||
ifeq ($(OS),Windows_NT)
|
||||
TARGET := $(TARGET).exe
|
||||
endif
|
||||
|
||||
all : $(TARGET)
|
||||
|
||||
$(TARGET) : main.go
|
||||
go build -ldflags="-X 'github.com/mattn/go-sqlite3.driverName=my-sqlite3'"
|
||||
|
||||
clean :
|
||||
rm -f $(TARGET)
|
||||
Reference in New Issue
Block a user