mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
simplify hyperkube prints
This commit is contained in:
@@ -101,14 +101,12 @@ func (hk *HyperKube) Print(i ...interface{}) {
|
|||||||
|
|
||||||
// Println is a convenience method to Println to the defined output
|
// Println is a convenience method to Println to the defined output
|
||||||
func (hk *HyperKube) Println(i ...interface{}) {
|
func (hk *HyperKube) Println(i ...interface{}) {
|
||||||
str := fmt.Sprintln(i...)
|
fmt.Fprintln(hk.Out(), i...)
|
||||||
hk.Print(str)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Printf is a convenience method to Printf to the defined output
|
// Printf is a convenience method to Printf to the defined output
|
||||||
func (hk *HyperKube) Printf(format string, i ...interface{}) {
|
func (hk *HyperKube) Printf(format string, i ...interface{}) {
|
||||||
str := fmt.Sprintf(format, i...)
|
fmt.Fprintf(hk.Out(), format, i...)
|
||||||
hk.Print(str)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run the server. This will pick the appropriate server and run it.
|
// Run the server. This will pick the appropriate server and run it.
|
||||||
|
Reference in New Issue
Block a user