mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* update to openshift 4.7 and sbo 0.7.0 * use server side apply for updating deployments * go mod vendor * use ApplyDeployment instad Patch and Create * fix login message * update unit tests to work with ApplyDeployment function * fall back to Create/Update for k8s older than 1.16 * abstract fieldManager into const * fix operator-framework imports
heredoc

About
Package heredoc provides the here-document with keeping indent.
Install
$ go get github.com/MakeNowJust/heredoc
Import
// usual
import "github.com/MakeNowJust/heredoc"
// shortcuts
import . "github.com/MakeNowJust/heredoc/dot"
Example
package main
import (
"fmt"
. "github.com/MakeNowJust/heredoc/dot"
)
func main() {
fmt.Println(D(`
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, ...
`))
// Output:
// Lorem ipsum dolor sit amet, consectetur adipisicing elit,
// sed do eiusmod tempor incididunt ut labore et dolore magna
// aliqua. Ut enim ad minim veniam, ...
//
}
API Document
License
This software is released under the MIT License, see LICENSE.