github.com/integration-system/go-cmp@v0.0.0-20190131081942-ac5582987a2f/cmp/internal/diff/debug_disable.go (about)

     1  // Copyright 2017, The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE.md file.
     4  
     5  // +build !debug
     6  
     7  package diff
     8  
     9  var debug debugger
    10  
    11  type debugger struct{}
    12  
    13  func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc {
    14  	return f
    15  }
    16  func (debugger) Update() {}
    17  func (debugger) Finish() {}