In a Makefile recipe section you will need to escape the $
using a second $
:
test:
go test $$(go list ./... | grep -v /vendor/)
.PHONY: test
More Related Contents:
- How to loop on nested structure in golang?
- Are slices passed by value?
- Creating a Constant Type and Restricting the Type’s Values
- What does go build build? (go build vs. go install)
- What are the use(s) for struct tags in Go?
- Why can’t I assign a *Struct to an *Interface?
- What are some examples of Go interfaces?
- If Go’s interfaces aren’t enforced, are they necessary?
- Optional Parameters in Go?
- In Go, how do I capture stdout of a function into a string?
- How to get Type representation from name via reflection?
- Convert between slices of different types
- Access a map value using a variable key in a Go template
- Golang embedded struct type
- Is it possible get information about caller function in Golang?
- Terminating function execution if a context is cancelled
- How can I access a struct field with generics (type T has no field or method)?
- Conversion of time.Duration type microseconds value to milliseconds
- Does Go have standard Err variables?
- How do I reverse a slice in go?
- How to delete an element from a Slice in Golang
- Does the Go language have function/method overloading?
- Go: panic: runtime error: invalid memory address or nil pointer dereference
- How do I compare two functions for pointer equality in the latest Go weekly?
- Go struct tags with underscore before function names
- How to verify JWT signature with JWK in Go?
- With Go’s webserver where does the root of the website map onto the filesystem?
- TypeOf without an instance and passing result to a func
- Slice chunking in Go
- Handle maps with same key type but different value type