title: Compare structs except one field golang
body: <p>I am comparing two structs and want to ignore a single field while doing so.</p>
  
  <pre><code>type test struct {
    name string
    time string
  } 
  
  func main() {
    a := test{"testName", time.Now().Format(time.UnixTime)}
    // after some time
    b := test{"testName", time.Now().Format(time.UnixTime)}
  
    fmt.Println(a.Name == b.Name) \\ returns true Desired outcome
    fmt.Println(reflect.DeepEqual(a,b)) \\ returns false
  
  }
  </code></pre>
  
  <p><code>reflect.DeepEqual()</code> does not allow for us to ignore a field and have manually done the comparison one field at a time.</p>
  
  <p>What is the idiomatic way to go about this?</p>