Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save suzuki-shunsuke/49aec5a5de1e9e3c7062df4f3ab1409d to your computer and use it in GitHub Desktop.
Save suzuki-shunsuke/49aec5a5de1e9e3c7062df4f3ab1409d to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
)
func main() {
var a map[string]string
fmt.Println(cmp.Equal(a, map[string]string{}, cmpopts.EquateEmpty()))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment