Documentation ¶
Index ¶
- Constants
- func MakeBracketWrapped[T any](sfw schnittstellen.StringFormatWriter[T]) schnittstellen.StringFormatWriter[T]
- func MakeColor[T any](o ColorOptions, fsw schnittstellen.StringFormatWriter[T], c ColorType) schnittstellen.StringFormatWriter[T]
- func MakeDefaultDatePrefixFormatWriter[T any](clock Clock, f schnittstellen.StringFormatWriter[T]) schnittstellen.StringFormatWriter[T]
- func MakeDelim[T any](delim string, w1 schnittstellen.WriterAndStringWriter, ...) func(T) error
- func MakeFunc[T any](f schnittstellen.FuncStringWriterFormat[T]) schnittstellen.StringFormatWriter[T]
- func MakeIndentedHeader(o ColorOptions) schnittstellen.StringFormatWriter[string]
- func MakeQuotedString[T ~string]() schnittstellen.StringFormatWriter[T]
- func MakeRightAligned() schnittstellen.StringFormatWriter[string]
- func MakeString[T ~string]() schnittstellen.StringFormatWriter[T]
- func StringPrefixFromOptions(options erworben_cli_print_options.PrintOptions) string
- func WriteStringPrefixFormat(w schnittstellen.WriterAndStringWriter, prefix, body string) (n int64, err error)
- type Clock
- type ColorOptions
- type ColorType
- type Date
Constants ¶
View Source
const ( StringDRArrow = "↳" StringNew = "new" StringSame = "same" StringChanged = "changed" StringDeleted = "deleted" StringUpdated = "updated" StringArchived = "archived" StringUnchanged = "unchanged" StringUntracked = "untracked" StringConflicted = "conflicted" StringRecognized = "recognized" StringCheckedOut = "checked out" StringAkteMissing = "akte missing" StringWouldDelete = "would delete" StringUnrecognized = "unrecognized" StringFormatDateTime = "06-01-02 15:04:05" StringIndent = " " LenStringMax = len(StringIndent) // TODO-P4 use reflection? ColorTypePointer = colorBlue ColorTypeConstant = colorItalic ColorTypeType = colorYellow ColorTypeIdentifier = colorCyan ColorTypeTitle = colorRed )
Variables ¶
This section is empty.
Functions ¶
func MakeBracketWrapped ¶
func MakeBracketWrapped[T any]( sfw schnittstellen.StringFormatWriter[T], ) schnittstellen.StringFormatWriter[T]
func MakeColor ¶
func MakeColor[T any]( o ColorOptions, fsw schnittstellen.StringFormatWriter[T], c ColorType, ) schnittstellen.StringFormatWriter[T]
func MakeDefaultDatePrefixFormatWriter ¶
func MakeDefaultDatePrefixFormatWriter[T any]( clock Clock, f schnittstellen.StringFormatWriter[T], ) schnittstellen.StringFormatWriter[T]
func MakeDelim ¶
func MakeDelim[T any]( delim string, w1 schnittstellen.WriterAndStringWriter, f schnittstellen.StringFormatWriter[T], ) func(T) error
func MakeFunc ¶
func MakeFunc[T any]( f schnittstellen.FuncStringWriterFormat[T], ) schnittstellen.StringFormatWriter[T]
func MakeIndentedHeader ¶
func MakeIndentedHeader( o ColorOptions, ) schnittstellen.StringFormatWriter[string]
func MakeQuotedString ¶
func MakeQuotedString[T ~string]() schnittstellen.StringFormatWriter[T]
func MakeRightAligned ¶
func MakeRightAligned() schnittstellen.StringFormatWriter[string]
func MakeString ¶
func MakeString[T ~string]() schnittstellen.StringFormatWriter[T]
func StringPrefixFromOptions ¶
func StringPrefixFromOptions( options erworben_cli_print_options.PrintOptions, ) string
func WriteStringPrefixFormat ¶
func WriteStringPrefixFormat( w schnittstellen.WriterAndStringWriter, prefix, body string, ) (n int64, err error)
Types ¶
type Date ¶
type Date[T any] struct { Clock Format string schnittstellen.StringFormatWriter[T] }
func (*Date[T]) WriteStringFormat ¶
func (f *Date[T]) WriteStringFormat( w schnittstellen.WriterAndStringWriter, e T, ) (n int64, err error)
Click to show internal directories.
Click to hide internal directories.