1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-07-01 01:43:07 +08:00
Files
.gitea
.github
assets
build
cmd
contrib
custom
docker
docs
integrations
models
modules
options
public
routers
services
snap
templates
tools
vendor
cloud.google.com
code.gitea.io
gitea.com
github.com
Azure
Microsoft
NYTimes
ProtonMail
PuerkitoBio
RoaringBitmap
acomagu
alecthomas
andybalholm
anmitsu
asaskevich
aymerick
beorn7
bits-and-blooms
blevesearch
boombuler
bradfitz
caddyserver
cespare
chi-middleware
couchbase
cpuguy83
danwakefield
davecgh
denisenkom
dgryski
djherbis
dlclark
dsnet
dustin
editorconfig
emirpasic
ethantkoenig
felixge
fsnotify
gliderlabs
go-asn1-ber
go-chi
go-enry
go-git
go-ldap
go-openapi
go-redis
go-sql-driver
go-stack
go-swagger
go-testfixtures
gobwas
goccy
gogs
golang
golang-jwt
golang-sql
google
gorilla
hashicorp
huandu
imdario
issue9
jaytaylor
jbenet
jessevdk
josharian
json-iterator
kballard
kevinburke
keybase
klauspost
kr
lafriks
lib
libdns
lunny
magiconair
mailru
markbates
mattn
matttproud
mholt
microcosm-cc
miekg
minio
mitchellh
modern-go
mrjones
mschoch
msteinert
nfnt
niklasfasching
nwaples
oklog
olekukonko
oliamb
olivere
pelletier
pierrec
pkg
pmezard
pquerna
prometheus
quasoft
rivo
rs
russross
sergi
go-diff
diffmatchpatch
diff.go
diffmatchpatch.go
match.go
mathutil.go
operation_string.go
patch.go
stringutil.go
AUTHORS
CONTRIBUTORS
LICENSE
shurcooL
sirupsen
spf13
ssor
steveyen
stretchr
subosito
syndtr
toqueteos
tstranex
ulikunitz
unknwon
unrolled
urfave
xanzy
xi2
yohcop
yuin
go.etcd.io
go.jolheiser.com
go.mongodb.org
go.uber.org
golang.org
google.golang.org
gopkg.in
mvdan.cc
strk.kbt.io
xorm.io
modules.txt
web_src
.air.toml
.changelog.yml
.drone.yml
.editorconfig
.eslintrc
.gitattributes
.gitignore
.golangci.yml
.ignore
.lgtm
.npmrc
.revive.toml
.stylelintrc
BSDmakefile
CHANGELOG.md
CONTRIBUTING.md
DCO
Dockerfile
Dockerfile.rootless
LICENSE
MAINTAINERS
Makefile
README.md
README_ZH.md
SECURITY.md
build.go
go.mod
go.sum
jest.config.js
main.go
package-lock.json
package.json
webpack.config.js
gitea/vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go
Mura Li d77176912b Use Go1.11 module ()
* Migrate to go modules

* make vendor

* Update mvdan.cc/xurls

* make vendor

* Update code.gitea.io/git

* make fmt-check

* Update github.com/go-sql-driver/mysql

* make vendor
2019-03-27 19:15:23 +08:00

24 lines
498 B
Go
Vendored

// Copyright (c) 2012-2016 The go-diff authors. All rights reserved.
// https://github.com/sergi/go-diff
// See the included LICENSE file for license details.
//
// go-diff is a Go implementation of Google's Diff, Match, and Patch library
// Original library is Copyright (c) 2006 Google Inc.
// http://code.google.com/p/google-diff-match-patch/
package diffmatchpatch
func min(x, y int) int {
if x < y {
return x
}
return y
}
func max(x, y int) int {
if x > y {
return x
}
return y
}