Documentation ¶ Index ¶ func NumInList(list []int, num int) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NumInList ¶ func NumInList(list []int, num int) bool NumInList checks if a given number is present in a list of integers. It takes a slice of integers `list` and an integer `num` as input. It returns true if `num` is found in `list`, otherwise it returns false. Types ¶ This section is empty. Source Files ¶ View all Source files solution.go Click to show internal directories. Click to hide internal directories.