This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "errors" | |
| "fmt" | |
| "log" | |
| "os" | |
| "reflect" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM golang:1.11.0 as builder | |
| RUN apt-get -y update && apt-get install -y sqlite3 libsqlite3-dev | |
| COPY . /go/src/sqltest | |
| WORKDIR /go/src/sqltest | |
| RUN go build -o sqltest main.go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "log" | |
| "sync" | |
| "time" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # main.go | |
| - docker-compose.yaml | |
| ## bin | |
| - server | |
| ## cmd | |
| - root.go | |
| - server.go | |
| - setup.go |
OlderNewer