debug_disable.go 406 B

123456789101112131415161718
  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 file.
  4. //go:build !cmp_debug
  5. // +build !cmp_debug
  6. package diff
  7. var debug debugger
  8. type debugger struct{}
  9. func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc {
  10. return f
  11. }
  12. func (debugger) Update() {}
  13. func (debugger) Finish() {}