Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic hello will not work no idea why - cruel of you. #42258

Closed
jimdgit opened this issue Oct 28, 2020 · 1 comment
Closed

Basic hello will not work no idea why - cruel of you. #42258

jimdgit opened this issue Oct 28, 2020 · 1 comment

Comments

@jimdgit
Copy link

jimdgit commented Oct 28, 2020

WOW Even you basic hello won't work!!! Great language.

What version of Go are you using (go version)?

$ go version
go version go1.15.3 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

mac catalina

go env Output
$ go env
O111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jcdonelson/Library/Caches/go-build"
GOENV="/Users/jcdonelson/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/jcdonelson/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/jcdonelson/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/jcdonelson/hello/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/w7/82hgqmmx1w19t9rxx5gvbqyc0000gn/T/go-build513279499=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

tried to learn go from the tutorial
package main

import "fmt"

import "rcs.io/quote"

func main() {
fmt.Println(quote.Go())
}

What did you expect to see?

hello.go using the rcs.io/quote package

What did you see instead?

go mod init: go.mod already exists
mbp:hello$ go run hello.go
go: finding module for package rcs.io/quote
hello.go:5:8: cannot find module providing package rcs.io/quote: unrecognized import path "rcs.io/quote": https fetch: Get "https://rcs.io/quote?go-get=1": dial tcp: lookup rcs.io: no such host

@ALTree
Copy link
Member

ALTree commented Oct 28, 2020

It's rsc.io, not rcs.io. You typed the package path wrong. Closing here.

@ALTree ALTree closed this as completed Oct 28, 2020
@golang golang locked and limited conversation to collaborators Oct 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants