I am trying to create slice of type bool but receiving error "cannot make type bool"
isVisited := make(bool,5,5)
./jdoodle.go:10:19: cannot make type bool
I also checked slice doc https://blog.golang.org/slices-intro
And several other articles on Golang but no success.
Thanks for help in advance.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.