OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 package gae | |
6 | |
7 type stopErr struct{} | |
8 | |
9 func (stopErr) Error() string { return "stop iteration" } | |
10 | |
11 // Stop is understood by various services to stop iterative processes. Examples | |
12 // include datastore.Interface.Run's callback. | |
13 var Stop error = stopErr{} | |
dnj
2015/12/14 22:35:03
Why not just errors.New("stop iteration")?
iannucci
2015/12/14 23:03:09
because then golint complains that it's not ErrSto
| |
OLD | NEW |