debug_disable.go

 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
 7package diff
 8
 9var debug debugger
10
11type debugger struct{}
12
13func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc {
14	return f
15}
16func (debugger) Update() {}
17func (debugger) Finish() {}