Update .travis.yml
无闻
6 years ago
0 | 0 |
sudo: false
|
1 | 1 |
language: go
|
2 | 2 |
go:
|
3 | |
- 1.4
|
4 | |
- 1.5
|
5 | |
- 1.6
|
6 | |
- 1.7
|
7 | |
- 1.8
|
|
3 |
- 1.4.x
|
|
4 |
- 1.5.x
|
|
5 |
- 1.6.x
|
|
6 |
- 1.7.x
|
|
7 |
- 1.8.x
|
8 | 8 |
- master
|
9 | 9 |
|
10 | 10 |
script:
|
34 | 34 |
|
35 | 35 |
// Maximum allowed depth when recursively substituing variable names.
|
36 | 36 |
_DEPTH_VALUES = 99
|
37 | |
_VERSION = "1.28.1"
|
|
37 |
_VERSION = "1.28.2"
|
38 | 38 |
)
|
39 | 39 |
|
40 | 40 |
// Version returns current package version literal.
|
|
541 | 541 |
func (f *File) SaveToIndent(filename, indent string) error {
|
542 | 542 |
// Note: Because we are truncating with os.Create,
|
543 | 543 |
// so it's safer to save to a temporary file location and rename afte done.
|
544 | |
buf, err := f.writeToBuffer(indent);
|
|
544 |
buf, err := f.writeToBuffer(indent)
|
545 | 545 |
if err != nil {
|
546 | 546 |
return err
|
547 | 547 |
}
|