Categorygithub.com/sinlov/filebrowser-client
repository
0.7.2
Repository: https://github.com/sinlov/filebrowser-client.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

ci

go mod version GoDoc goreportcard

GitHub license codecov GitHub latest SemVer tag) GitHub release)

for what

  • this project used to support go web client for filebrowser

Contributing

Contributor Covenant GitHub contributors

We welcome community contributions to this project.

Please read Contributor Guide for more information on how to get started.

请阅读有关 贡献者指南 以获取更多如何入门的信息

depends

in go mod project

# warning use private git host must set
# global set for once
# add private git host like github.com to evn GOPRIVATE
$ go env -w GOPRIVATE='github.com'
# use ssh proxy
# set ssh-key to use ssh as http
$ git config --global url."[email protected]:".insteadOf "http://github.com/"
# or use PRIVATE-TOKEN
# set PRIVATE-TOKEN as gitlab or gitea
$ git config --global http.extraheader "PRIVATE-TOKEN: {PRIVATE-TOKEN}"
# set this rep to download ssh as https use PRIVATE-TOKEN
$ git config --global url."ssh://github.com/".insteadOf "https://github.com/"

# before above global settings
# test version info
$ git ls-remote -q http://github.com/sinlov/filebrowser-client.git

# test depends see full version
$ go list -mod=readonly -v -m -versions github.com/sinlov/filebrowser-client
# or use last version add go.mod by script
$ echo "go mod edit -require=$(go list -mod=readonly -m -versions github.com/sinlov/filebrowser-client | awk '{print $1 "@" $NF}')"
$ echo "go mod vendor"

env

  • minimum go version: go 1.17
    • github.com/urfave/cli/v2 v2.4.1 support go 1.11 then v2.4.2 update to go 1.18
  • change go 1.17, ^1.17, 1.17.13 to new go version

usage

dev

make init dep
  • test code
make test

add main.go file and run

make run

docker

# then test build as test/Dockerfile
$ make dockerTestRestartLatest
# clean test build
$ make dockerTestPruneLatest

# see how to use
$ filebrowser-client -h