parent
35bec795e7
commit
ef53783030
3
Makefile
3
Makefile
|
@ -4,3 +4,6 @@ all:
|
|||
make -C zoopb-example
|
||||
make -C testGui
|
||||
make -C going2git # actually builds against git2go using libgit2 v1.8.4
|
||||
|
||||
clean:
|
||||
rm -f go.*
|
||||
|
|
|
@ -3,6 +3,9 @@ package main
|
|||
import (
|
||||
"gocloud.dev/blob"
|
||||
// _ "gocloud.dev/blob/<driver>"
|
||||
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
|
|
|
@ -4,7 +4,12 @@ BUILDTIME = $(shell date +%s)
|
|||
|
||||
all: build
|
||||
|
||||
build: goimports
|
||||
build: goimports go.mod
|
||||
go build -v upload.go
|
||||
go build -v download.go
|
||||
go build -v main.go
|
||||
|
||||
raw:
|
||||
GO111MODULE=off go build -v \
|
||||
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||
|
||||
|
@ -16,13 +21,10 @@ goimports:
|
|||
# // to globally reset paths:
|
||||
# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go
|
||||
|
||||
gocui: build
|
||||
reset
|
||||
./go-clone-test --gui gocui
|
||||
go.mod:
|
||||
go mod init
|
||||
go mod tidy
|
||||
|
||||
install: goimports
|
||||
GO111MODULE=off go install \
|
||||
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||
|
||||
force: build
|
||||
./go-clone-test --force
|
||||
clean:
|
||||
rm -f go.*
|
||||
rm -f upload download main
|
|
@ -10,10 +10,10 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
r2Endpoint = "<account-id>.r2.cloudflarestorage.com" // Replace with your R2 endpoint
|
||||
r2AccessKey = "<your-access-key>" // Replace with your Access Key
|
||||
r2SecretKey = "<your-secret-key>" // Replace with your Secret Key
|
||||
r2BucketName = "example-bucket" // Replace with your bucket name
|
||||
r2Endpoint = "<account-id>.r2.cloudflarestorage.com" // Replace with your R2 endpoint
|
||||
r2AccessKey = "<your-access-key>" // Replace with your Access Key
|
||||
r2SecretKey = "<your-secret-key>" // Replace with your Secret Key
|
||||
r2BucketName = "example-bucket" // Replace with your bucket name
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
Loading…
Reference in New Issue