AB
G:\go-dir\go1.16.3\src\rsc.io\quote\quote.go:8
тут написано?Size: a a a
AB
G:\go-dir\go1.16.3\src\rsc.io\quote\quote.go:8
тут написано?AB
go clean -cache -modcache -r
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package quote collects pithy sayings.
package quote // import "rsc.io/quote"
import "rsc.io/quote/v3"
// Hello returns a greeting.
func Hello() string {
return quote.HelloV3()
}
// Glass returns a useful phrase for world travelers.
func Glass() string {
// See http://www.oocities.org/nodotus/hbglass.html.
return quote.GlassV3()
}
// Go returns a Go proverb.
func Go() string {
return quote.GoV3()
}
// Opt returns an optimization truth.
func Opt() string {
// Wisdom from ken.
return quote.OptV3()
}
AB
AB
AB
go get rsc.io/quote/v3
G:\Projects\MyLilGo>go get rsc.io/quote/v3
code in directory G:\go-dir\go1.16.3\src\rsc.io\quote\v3 expects import "rsc.io/quote"
AB
import (
"math/rand"
"rsc.io/quote"
)
AB
import "lala/blabla"
то не нужно делать всякие go get и прочее, просто go mod tidy
и оно само подтянет что надоJI
н
н