Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-workhorse
Commits
73647263
Commit
73647263
authored
Sep 25, 2017
by
Kim "BKC" Carlbäcker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update BurntSushi/toml
parent
9e4f081f
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
248 additions
and
127 deletions
+248
-127
vendor/github.com/BurntSushi/toml/.gitignore
vendor/github.com/BurntSushi/toml/.gitignore
+0
-5
vendor/github.com/BurntSushi/toml/.travis.yml
vendor/github.com/BurntSushi/toml/.travis.yml
+0
-15
vendor/github.com/BurntSushi/toml/COMPATIBLE
vendor/github.com/BurntSushi/toml/COMPATIBLE
+1
-1
vendor/github.com/BurntSushi/toml/COPYING
vendor/github.com/BurntSushi/toml/COPYING
+17
-10
vendor/github.com/BurntSushi/toml/README.md
vendor/github.com/BurntSushi/toml/README.md
+8
-10
vendor/github.com/BurntSushi/toml/doc.go
vendor/github.com/BurntSushi/toml/doc.go
+1
-1
vendor/github.com/BurntSushi/toml/encode.go
vendor/github.com/BurntSushi/toml/encode.go
+1
-1
vendor/github.com/BurntSushi/toml/lex.go
vendor/github.com/BurntSushi/toml/lex.go
+179
-84
vendor/github.com/BurntSushi/toml/parse.go
vendor/github.com/BurntSushi/toml/parse.go
+35
-0
vendor/vendor.json
vendor/vendor.json
+6
-0
No files found.
vendor/github.com/BurntSushi/toml/.gitignore
deleted
100644 → 0
View file @
9e4f081f
TAGS
tags
.*.swp
tomlcheck/tomlcheck
toml.test
vendor/github.com/BurntSushi/toml/.travis.yml
deleted
100644 → 0
View file @
9e4f081f
language
:
go
go
:
-
1.1
-
1.2
-
1.3
-
1.4
-
1.5
-
1.6
-
tip
install
:
-
go install ./...
-
go get github.com/BurntSushi/toml-test
script
:
-
export PATH="$PATH:$HOME/gopath/bin"
-
make test
vendor/github.com/BurntSushi/toml/COMPATIBLE
View file @
73647263
Compatible with TOML version
[v0.
2.0](https://github.com/mojombo/toml/blob/master/versions/toml-v0.2
.0.md)
[v0.
4.0](https://github.com/toml-lang/toml/blob/v0.4.0/versions/en/toml-v0.4
.0.md)
vendor/github.com/BurntSushi/toml/COPYING
View file @
73647263
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
The MIT License (MIT)
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Copyright (c) 2013 TOML authors
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
vendor/github.com/BurntSushi/toml/README.md
View file @
73647263
## TOML parser and encoder for Go with reflection
TOML stands for Tom's Obvious, Minimal Language. This Go package provides a
reflection interface similar to Go's standard library
`json`
and
`xml`
reflection interface similar to Go's standard library
`json`
and
`xml`
packages. This package also supports the
`encoding.TextUnmarshaler`
and
`encoding.TextMarshaler`
interfaces so that you can define custom data
`encoding.TextMarshaler`
interfaces so that you can define custom data
representations. (There is an example of this below.)
Spec: https://github.com/
mojombo
/toml
Spec: https://github.com/
toml-lang
/toml
Compatible with TOML version
[
v0.
2.0
](
https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.2
.0.md
)
[
v0.
4.0
](
https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4
.0.md
)
Documentation: http://godoc.org/github.com/BurntSushi/toml
Documentation: http
s
://godoc.org/github.com/BurntSushi/toml
Installation:
...
...
@@ -26,8 +26,7 @@ go get github.com/BurntSushi/toml/cmd/tomlv
tomlv some-toml-file.toml
```
[
![Build status
](
https://api.travis-ci.org/BurntSushi/toml.png
)
](https://travis-ci.org/BurntSushi/toml)
[
![Build Status
](
https://travis-ci.org/BurntSushi/toml.svg?branch=master
)
](https://travis-ci.org/BurntSushi/toml)
[
![GoDoc
](
https://godoc.org/github.com/BurntSushi/toml?status.svg
)
](https://godoc.org/github.com/BurntSushi/toml)
### Testing
...
...
@@ -87,7 +86,7 @@ type TOML struct {
### Using the `encoding.TextUnmarshaler` interface
Here's an example that automatically parses duration strings into
Here's an example that automatically parses duration strings into
`time.Duration`
values:
```
toml
...
...
@@ -120,7 +119,7 @@ for _, s := range favorites.Song {
}
```
And you'll also need a
`duration`
type that satisfies the
And you'll also need a
`duration`
type that satisfies the
`encoding.TextUnmarshaler`
interface:
```
go
...
...
@@ -217,4 +216,3 @@ Note that a case insensitive match will be tried if an exact match can't be
found.
A working example of the above can be found in
`_examples/example.{go,toml}`
.
vendor/github.com/BurntSushi/toml/doc.go
View file @
73647263
...
...
@@ -4,7 +4,7 @@ files via reflection. There is also support for delaying decoding with
the Primitive type, and querying the set of keys in a TOML document with the
MetaData type.
The specification implemented: https://github.com/
mojombo
/toml
The specification implemented: https://github.com/
toml-lang
/toml
The sub-command github.com/BurntSushi/toml/cmd/tomlv can be used to verify
whether a file is a valid TOML document. It can also be used to print the
...
...
vendor/github.com/BurntSushi/toml/encode.go
View file @
73647263
...
...
@@ -241,7 +241,7 @@ func (enc *Encoder) eArrayOfTables(key Key, rv reflect.Value) {
func
(
enc
*
Encoder
)
eTable
(
key
Key
,
rv
reflect
.
Value
)
{
panicIfInvalidKey
(
key
)
if
len
(
key
)
==
1
{
// Output an extra new
line between top-level tables.
// Output an extra newline between top-level tables.
// (The newline isn't written if nothing else has been written though.)
enc
.
newline
()
}
...
...
vendor/github.com/BurntSushi/toml/lex.go
View file @
73647263
This diff is collapsed.
Click to expand it.
vendor/github.com/BurntSushi/toml/parse.go
View file @
73647263
...
...
@@ -269,6 +269,41 @@ func (p *parser) value(it item) (interface{}, tomlType) {
types
=
append
(
types
,
typ
)
}
return
array
,
p
.
typeOfArray
(
types
)
case
itemInlineTableStart
:
var
(
hash
=
make
(
map
[
string
]
interface
{})
outerContext
=
p
.
context
outerKey
=
p
.
currentKey
)
p
.
context
=
append
(
p
.
context
,
p
.
currentKey
)
p
.
currentKey
=
""
for
it
:=
p
.
next
();
it
.
typ
!=
itemInlineTableEnd
;
it
=
p
.
next
()
{
if
it
.
typ
!=
itemKeyStart
{
p
.
bug
(
"Expected key start but instead found %q, around line %d"
,
it
.
val
,
p
.
approxLine
)
}
if
it
.
typ
==
itemCommentStart
{
p
.
expect
(
itemText
)
continue
}
// retrieve key
k
:=
p
.
next
()
p
.
approxLine
=
k
.
line
kname
:=
p
.
keyString
(
k
)
// retrieve value
p
.
currentKey
=
kname
val
,
typ
:=
p
.
value
(
p
.
next
())
// make sure we keep metadata up to date
p
.
setType
(
kname
,
typ
)
p
.
ordered
=
append
(
p
.
ordered
,
p
.
context
.
add
(
p
.
currentKey
))
hash
[
kname
]
=
val
}
p
.
context
=
outerContext
p
.
currentKey
=
outerKey
return
hash
,
tomlHash
}
p
.
bug
(
"Unexpected value type: %s"
,
it
.
typ
)
panic
(
"unreachable"
)
...
...
vendor/vendor.json
View file @
73647263
...
...
@@ -2,6 +2,12 @@
"comment"
:
""
,
"ignore"
:
"test"
,
"package"
:
[
{
"checksumSHA1"
:
"Pc2ORQp+VY3Un/dkh4QwLC7R6lE="
,
"path"
:
"github.com/BurntSushi/toml"
,
"revision"
:
"a368813c5e648fee92e5f6c30e3944ff9d5e8895"
,
"revisionTime"
:
"2017-06-26T11:06:00Z"
},
{
"checksumSHA1"
:
"spyv5/YFBjYyZLZa1U2LBfDR8PM="
,
"path"
:
"github.com/beorn7/perks/quantile"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment