Код: Выделить всё
olej@R420:~/2024/own.BOOKs/BHV.Go.3/examples.work/web/tcl.tk$ go run imitguiDemo.go
imitguiDemo.go:19:2: no required module provides package github.com/edartuz/go-tk/gotk: go.mod file not found in current directory or any parent directory; see 'go help modules'
Код: Выделить всё
olej@R420:~/2024/own.BOOKs/BHV.Go.3/examples.work/web/tcl.tk$ go mod init tcl.tk
go: creating new go.mod: module tcl.tk
go: to add module requirements and sums:
go mod tidy
Код: Выделить всё
olej@R420:~/2024/own.BOOKs/BHV.Go.3/examples.work/web/tcl.tk$ go mod tidy
go: finding module for package github.com/edartuz/go-tk/gotk
go: tcl.tk imports
github.com/edartuz/go-tk/gotk: cannot find module providing package github.com/edartuz/go-tk/gotk: module github.com/edartuz/go-tk/gotk: git ls-remote -q origin in /home/olej/go/pkg/mod/cache/vcs/f7e6ddf976267ef8cbebe4bec72f488d56942ef138e9cfc08b1234f6b720e552: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
olej@R420:~/2024/own.BOOKs/BHV.Go.3/examples.work/web/tcl.tk$ go build imitguiDemo.go
imitguiDemo.go:19:2: no required module provides package github.com/edartuz/go-tk/gotk; to add it:
go get github.com/edartuz/go-tk/gotk