golang How to Fix unrecognized import path with go get

Опубликовано: 29 Сентябрь 2024
на канале: ATOM
11,857
22

golang How to Fix Error unrecognized import path with go get
$go get -u github.com/gorilla/mux
package bytes: unrecognized import path "bytes" (import path does not begin with hostname)
package context: unrecognized import path "context" (import path does not begin with hostname)
package errors: unrecognized import path "errors" (import path does not begin with hostname)
package fmt: unrecognized import path "fmt" (import path does not begin with hostname)
package net/http: unrecognized import path "net/http" (import path does not begin with hostname)
package net/url: unrecognized import path "net/url" (import path does not begin with hostname)
package path: unrecognized import path "path" (import path does not begin with hostname)
package regexp: unrecognized import path "regexp" (import path does not begin with hostname)
package strconv: unrecognized import path "strconv" (import path does not begin with hostname)
package strings: unrecognized import path "strings" (import path does not begin with hostname)