common

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrefixMultiLine

func PrefixMultiLine(lines string, prefix string) string

PrefixMultiLine is a helper functions, that given a string with line breaks will prefix each line with the given prefix

Params:

  • lines: The string containing the lines to split
  • prefix: The prefix to apply to each line

Returns the same string as the one given but prefixed

Types

type Printable

type Printable interface {
	// ToString returns a basic, but readable, representation of the field
	ToString() string
}

Printable is the basic interface that most of the fields and messages should implement

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL