Update dedent to latest release
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
11
vendor/github.com/lithammer/dedent/.travis.yml
generated
vendored
Normal file
11
vendor/github.com/lithammer/dedent/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- "1.6"
|
||||
- "1.7"
|
||||
- "1.8"
|
||||
- "1.9"
|
||||
- "1.10"
|
||||
- "1.11"
|
||||
|
||||
sudo: false
|
4
vendor/github.com/renstrom/dedent/BUILD → vendor/github.com/lithammer/dedent/BUILD
generated
vendored
4
vendor/github.com/renstrom/dedent/BUILD → vendor/github.com/lithammer/dedent/BUILD
generated
vendored
@@ -3,8 +3,8 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = ["dedent.go"],
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/renstrom/dedent",
|
||||
importpath = "github.com/renstrom/dedent",
|
||||
importmap = "k8s.io/kubernetes/vendor/github.com/lithammer/dedent",
|
||||
importpath = "github.com/lithammer/dedent",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Peter Renström
|
||||
Copyright (c) 2018 Peter Lithammer
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
@@ -1,7 +1,7 @@
|
||||
# Dedent
|
||||
|
||||
[](https://travis-ci.org/renstrom/dedent)
|
||||
[](https://godoc.org/github.com/renstrom/dedent)
|
||||
[](https://travis-ci.org/lithammer/dedent)
|
||||
[](https://godoc.org/github.com/lithammer/dedent)
|
||||
|
||||
Removes common leading whitespace from multiline strings. Inspired by [`textwrap.dedent`](https://docs.python.org/3/library/textwrap.html#textwrap.dedent) in Python.
|
||||
|
||||
@@ -13,19 +13,20 @@ Imagine the following snippet that prints a multiline string. You want the inden
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"fmt"
|
||||
|
||||
"github.com/renstrom/dedent"
|
||||
"github.com/lithammer/dedent"
|
||||
)
|
||||
|
||||
func main() {
|
||||
s := `Lorem ipsum dolor sit amet,
|
||||
consectetur adipiscing elit.
|
||||
Curabitur justo tellus, facilisis nec efficitur dictum,
|
||||
fermentum vitae ligula. Sed eu convallis sapien.`
|
||||
fmt.Println(dedent.Dedent(s))
|
||||
fmt.Println("-------------")
|
||||
fmt.Println(s)
|
||||
s := `
|
||||
Lorem ipsum dolor sit amet,
|
||||
consectetur adipiscing elit.
|
||||
Curabitur justo tellus, facilisis nec efficitur dictum,
|
||||
fermentum vitae ligula. Sed eu convallis sapien.`
|
||||
fmt.Println(Dedent(s))
|
||||
fmt.Println("-------------")
|
||||
fmt.Println(s)
|
||||
}
|
||||
```
|
||||
|
||||
@@ -39,10 +40,11 @@ consectetur adipiscing elit.
|
||||
Curabitur justo tellus, facilisis nec efficitur dictum,
|
||||
fermentum vitae ligula. Sed eu convallis sapien.
|
||||
-------------
|
||||
Lorem ipsum dolor sit amet,
|
||||
consectetur adipiscing elit.
|
||||
Curabitur justo tellus, facilisis nec efficitur dictum,
|
||||
fermentum vitae ligula. Sed eu convallis sapien.
|
||||
|
||||
Lorem ipsum dolor sit amet,
|
||||
consectetur adipiscing elit.
|
||||
Curabitur justo tellus, facilisis nec efficitur dictum,
|
||||
fermentum vitae ligula. Sed eu convallis sapien.
|
||||
```
|
||||
|
||||
## License
|
1
vendor/github.com/lithammer/dedent/go.mod
generated
vendored
Normal file
1
vendor/github.com/lithammer/dedent/go.mod
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module github.com/lithammer/dedent
|
11
vendor/github.com/renstrom/dedent/.travis.yml
generated
vendored
11
vendor/github.com/renstrom/dedent/.travis.yml
generated
vendored
@@ -1,11 +0,0 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.0
|
||||
- 1.1
|
||||
- 1.2
|
||||
- 1.3
|
||||
- 1.4
|
||||
- 1.5
|
||||
|
||||
sudo: false
|
Reference in New Issue
Block a user