debug_disable.go 383 B

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