4d5afd743f
`jsontoml` is very similar to `tomljson` It uses json.Unmarshal to convert read json to map and then converts the map to tree using `toml.TreeFromMap`. Then this tree is converted to toml using `tree.toTomlString()` The numbers when taken as input from json get converted to float64 because of how `json.Unmarshal()` converts all json numbers to float. Fixes #280
36 lines
911 B
YAML
36 lines
911 B
YAML
version: "{build}"
|
|
|
|
# Source Config
|
|
clone_folder: c:\gopath\src\github.com\pelletier\go-toml
|
|
|
|
# Build host
|
|
environment:
|
|
GOPATH: c:\gopath
|
|
DEPTESTBYPASS501: 1
|
|
GOVERSION: 1.12
|
|
GO111MODULE: on
|
|
|
|
init:
|
|
- git config --global core.autocrlf input
|
|
|
|
# Build
|
|
install:
|
|
# Install the specific Go version.
|
|
- rmdir c:\go /s /q
|
|
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi
|
|
- msiexec /i go%GOVERSION%.windows-amd64.msi /q
|
|
- choco install bzr
|
|
- set Path=c:\go\bin;c:\gopath\bin;C:\Program Files (x86)\Bazaar\;C:\Program Files\Mercurial\%Path%
|
|
- go version
|
|
- go env
|
|
|
|
build: false
|
|
deploy: false
|
|
|
|
test_script:
|
|
- go test github.com/pelletier/go-toml
|
|
- go test github.com/pelletier/go-toml/cmd/tomljson
|
|
- go test github.com/pelletier/go-toml/cmd/jsontoml
|
|
- go test github.com/pelletier/go-toml/cmd/tomll
|
|
- go test github.com/pelletier/go-toml/query
|