本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
498B

  1. // Copyright (c) 2012-2016 The go-diff authors. All rights reserved.
  2. // https://github.com/sergi/go-diff
  3. // See the included LICENSE file for license details.
  4. //
  5. // go-diff is a Go implementation of Google's Diff, Match, and Patch library
  6. // Original library is Copyright (c) 2006 Google Inc.
  7. // http://code.google.com/p/google-diff-match-patch/
  8. package diffmatchpatch
  9. func min(x, y int) int {
  10. if x < y {
  11. return x
  12. }
  13. return y
  14. }
  15. func max(x, y int) int {
  16. if x > y {
  17. return x
  18. }
  19. return y
  20. }
上海开阖软件有限公司 沪ICP备12045867号-1