Go: Check if a map is empty

if len(myMap) == 0 {
        // myMap is empty
}

Comments

Be the first to comment!