1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-06-30 17:30:34 +08:00

Use vendored go-swagger ()

* Use vendored go-swagger

* vendor go-swagger

* revert un wanteed change

* remove un-needed GO111MODULE

* Update Makefile

Co-Authored-By: techknowlogick <matti@mdranta.net>
This commit is contained in:
Antoine GIRARD
2019-09-04 21:53:54 +02:00
committed by Lauris BH
parent 4cb1bdddc8
commit 9fe4437bda
686 changed files with 143379 additions and 17 deletions
Makefilego.modgo.sumtools.go
vendor
github.com
PuerkitoBio
asaskevich/govalidator
fsnotify/fsnotify
go-openapi
analysis
errors
inflect
jsonpointer
jsonreference
loads
runtime
spec
strfmt
swag
validate
go-stack/stack
go-swagger/go-swagger
gorilla/handlers
hashicorp/hcl
jessevdk/go-flags
kr
magiconair/properties
mailru/easyjson
mitchellh/mapstructure
pelletier/go-toml
spf13
toqueteos/webbrowser
go.mongodb.org/mongo-driver
golang.org/x
modules.txt

38
vendor/github.com/go-stack/stack/README.md generated vendored Normal file

@ -0,0 +1,38 @@
[![GoDoc](https://godoc.org/github.com/go-stack/stack?status.svg)](https://godoc.org/github.com/go-stack/stack)
[![Go Report Card](https://goreportcard.com/badge/go-stack/stack)](https://goreportcard.com/report/go-stack/stack)
[![TravisCI](https://travis-ci.org/go-stack/stack.svg?branch=master)](https://travis-ci.org/go-stack/stack)
[![Coverage Status](https://coveralls.io/repos/github/go-stack/stack/badge.svg?branch=master)](https://coveralls.io/github/go-stack/stack?branch=master)
# stack
Package stack implements utilities to capture, manipulate, and format call
stacks. It provides a simpler API than package runtime.
The implementation takes care of the minutia and special cases of interpreting
the program counter (pc) values returned by runtime.Callers.
## Versioning
Package stack publishes releases via [semver](http://semver.org/) compatible Git
tags prefixed with a single 'v'. The master branch always contains the latest
release. The develop branch contains unreleased commits.
## Formatting
Package stack's types implement fmt.Formatter, which provides a simple and
flexible way to declaratively configure formatting when used with logging or
error tracking packages.
```go
func DoTheThing() {
c := stack.Caller(0)
log.Print(c) // "source.go:10"
log.Printf("%+v", c) // "pkg/path/source.go:10"
log.Printf("%n", c) // "DoTheThing"
s := stack.Trace().TrimRuntime()
log.Print(s) // "[source.go:15 caller.go:42 main.go:14]"
}
```
See the docs for all of the supported formatting options.