Indirect dependencies

Report a typo

Suppose you have installed the github.com/fatih/color package to your Go project named example, and that you have imported it within your main.go file.

Below you will see the contents of the go.mod file of the example project:

module example

go 1.17

require github.com/fatih/color v1.13.0

require (
    github.com/mattn/go-colorable v0.1.9 // indirect
    github.com/mattn/go-isatty v0.0.14 // indirect
    golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
)

What does the // indirect comment mean for the other dependencies within the go.mod file?

Select one option from the list
___

Create a free account to access the full topic