The current snippet gives warning warning: some is unused
.
package p
import "fmt"
func some(s string, n int) {
fmt.Println(s)
// n is unused
}
However, if the function is exported, then there is no warning.
No warning:
package p
import "fmt"
func Some(s string, n int) {
fmt.Println(s)
// n is unused
}