Golang: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 61: | Line 61: | ||
perl -pi -w -e 's/\"github.com\/RangelReale\/osin\"/\"github.com\/janmg\/osin\"/g;' $( grep -rl '\"github.com\/RangelReale\/osin\"' ) | perl -pi -w -e 's/\"github.com\/RangelReale\/osin\"/\"github.com\/janmg\/osin\"/g;' $( grep -rl '\"github.com\/RangelReale\/osin\"' ) | ||
https://go.dev/doc/modules/layout | |||
==== Flutter ==== | |||
https://github.com/go-flutter-desktop/go-flutter | |||
https://github.com/go-flutter-desktop/hover | |||
https://docs.flutter.dev/tools/vs-code | |||
https://docs.flutter.dev/get-started/install/windows/desktop | |||
https://go.dev/wiki/InstallFromSource | |||
https://jmeubank.github.io/tdm-gcc/ | |||
https://developer.android.com/studio | |||
=== Android === | |||
sdk manager / system settings / android sdk / sdk tools / android command line tools | sdk manager / system settings / android sdk / sdk tools / android command line tools | ||
https://github.com/dart-lang/native/tree/main/pkgs/ffigen | |||
https://github.com/intel/haxm/wiki/Installation-Instructions-on-Windows | |||
https://visualstudio.microsoft.com/downloads/ | |||
MSVC v142 - VS 2019 C++ x64/x86 build tools | MSVC v142 - VS 2019 C++ x64/x86 build tools | ||
go | flutter doctor | ||
dart --disable-analytics | |||
dart fix --apply | |||
go install github.com/go-flutter-desktop/hover@latest | |||
hover init github.com/janmg/netshow | |||
hover run | |||
hover build windows | |||
flutter build bundle | |||
flutter pub get | |||
go build -o main.so -buildmode=c-shared .\main.go | go env -w CGO_ENABLED=1 | ||
go build -o main.so -buildmode=c-shared .\main.go |
Latest revision as of 09:01, 3 December 2024
https://github.com/go-modules-by-example/index/blob/master/008_vendor_example/README.md
go version go mod init janmg.com/blob-to-queue go clean -modcache go mod tidy go run blob-to-queue.go config.go blob.go nsgflowlogs.go azure-eventhub.go kafka.go
go mod init go mod vendor go get github.com/RangelReale/osin go get github.com/pborman/uuid go run .
go env -w CGO_ENABLED=0 go mod download go mod init github.com/Azure/azure-sdk-for-go/sdk/storage/azblob go mod init github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blockblob go mod init janmg.com/blob-to-kafka go mod tidy
./vendor/ $GOROOT $GOPATH
src,pkg,bin
cat /etc/profile.d/go.sh export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin export OS_OUTPUT_GOPATH=0
GOROOT="/usr/lib/go" GOPATH="/root/go"
hack/lib/build/binaries.sh OS_EXTRA_GOPATH=$GOPATH
make build hack/build-go.sh hack/lib/build/binaries.sh 228: `GOOS=${platform%/*} GOARCH=${platform##*/} go install -pkgdir "${OS_OUTPUT_PKGDIR}/${platform}" -tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" -ldflags="${local_ldflags}" "${goflags[@]:+${goflags[@]}}" "${nonstatics[@]}"`
https://github.com/golang/go/wiki/GOPATH https://github.com/golang/go/issues/17262
go env export $GOPATH=$HOME/go hack/env OS_OUTPUT_GOPATH
./_output/local/pkgdir/linux/amd64/github.com/openshift/origin/vendor/github.com/RangelReale/osin.a cp /root/go/pkg/linux_amd64/github.com/RangelReale/osin.a ./_output/local/pkgdir/linux/amd64/github.com/openshift/origin/vendor/github.com/RangelReale/osin.a
Godeps/Godeps.json
"github.com/RangelReale/osin"
cd /usr/src/origin; /root/go/bin/godep restore
perl -pi -w -e 's/\"github.com\/RangelReale\/osin\"/\"github.com\/janmg\/osin\"/g;' $( grep -rl '\"github.com\/RangelReale\/osin\"' )
https://go.dev/doc/modules/layout
Flutter
https://github.com/go-flutter-desktop/go-flutter
https://github.com/go-flutter-desktop/hover
https://docs.flutter.dev/tools/vs-code
https://docs.flutter.dev/get-started/install/windows/desktop
https://go.dev/wiki/InstallFromSource
https://jmeubank.github.io/tdm-gcc/
https://developer.android.com/studio
Android
sdk manager / system settings / android sdk / sdk tools / android command line tools
https://github.com/dart-lang/native/tree/main/pkgs/ffigen
https://github.com/intel/haxm/wiki/Installation-Instructions-on-Windows
https://visualstudio.microsoft.com/downloads/
MSVC v142 - VS 2019 C++ x64/x86 build tools
flutter doctor dart --disable-analytics dart fix --apply go install github.com/go-flutter-desktop/hover@latest hover init github.com/janmg/netshow hover run hover build windows flutter build bundle flutter pub get
go env -w CGO_ENABLED=1 go build -o main.so -buildmode=c-shared .\main.go