$ go mod tidy
go: finding module for package rsc.io/quote
go: found rsc.io/quote in rsc.io/quote v1.5.2
package main
import "fmt"
import "rsc.io/quote"
func main() {
fmt.Println(quote.Go())
}
$ go run .
Don't communicate by sharing memory, share memory by communicating.
Recommend
Tutorial: Get started with Go Call code in an external package
Tutorial: Get started with Go Write some code
Go Tutorial: Getting started with fuzzing Completed code
Go Tutorial: Getting started with fuzzing Fix the double reverse error Fix the error Run the code
Go Tutorial: Getting started with fuzzing Fix the double reverse error Fix the error Write the code
Go Tutorial: Getting started with fuzzing Fix the invalid string error Fix the error Run the code
Go Tutorial: Getting started with fuzzing Fix the invalid string error Fix the error Write the code
Go Tutorial: Getting started with fuzzing Fix the invalid string error Diagnose the error
Go Tutorial: Getting started with fuzzing Add a fuzz test Run the code
Go Tutorial: Getting started with fuzzing Add a fuzz test Write the code
Go Tutorial: Getting started with fuzzing Add a unit test Run the code
Go Tutorial: Getting started with fuzzing Add a unit test Write the code
Go Tutorial: Getting started with fuzzing Add code to test Run the code
Go Tutorial: Getting started with fuzzing Add code to test Write the code
Go Tutorial: Getting started with fuzzing Create a folder for your code
Tutorial: Create a Go module Start a module that others can use
Go Tutorial: Getting started with multi-module workspaces Create a module for your code
Tutorial: Developing a RESTful API with Go and Gin Completed code
Tutorial: Developing a RESTful API with Go and Gin Write a handler to add a new item Run the code
Tutorial: Developing a RESTful API with Go and Gin Write a handler to add a new item Write the code
Tutorial: Developing a RESTful API with Go and Gin Write a handler to return all items Run the code
Tutorial: Developing a RESTful API with Go and Gin Create the data Write the code
Tutorial: Developing a RESTful API with Go and Gin Create a folder for your code
Go Tutorial: Accessing a relational database Completed code
Go Tutorial: Accessing a relational database Add data Write the code