package main

import (
"fmt"
)

func main() {

fmt.Println(isInputNil(nil)) //Returns true
fmt.Println(isMapNil(nil)) //Returns false
}

func isMapNil(m map[string]interface{}) bool {
return isInputNil(m)
}

func isInputNil(input interface{}) bool {
return input == nil
}

https://play.golang.org/p/bBSFSdnOOk4

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CALHF5trOHhHreCF%2BwU7Tb6hthL-Yi-3yw7DGCUubTx7LQQ_9cQ%40mail.gmail.com.

Reply via email to