msgs

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WelcomeMessage = `` /* 156-byte string literal not displayed */

	ContainerRenamed = `
Container {old_name} successfully renamed to {new_name}
`

	ImageTagged = `
Image {id} successfully tagged {tag}
`

	ContainerNewNameInput = `
Enter new container name:	
`

	ImageNewNameInput = `
Enter new image tag:
`

	Container = `
''Container name: '' {name},
''Used Image:     '' {image},
''Status:         '' {status}
`

	Image = `
''ID:   '' {id},
''Size: '' {size},
''Tags: '' {tags}
''Status: '' {status}
''Created at: '' {created_at}
`

	Stat = `` /* 158-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func FmtContainer

func FmtContainer(container *models.Container) string

func FmtContainerRenamed

func FmtContainerRenamed(old_name, new_name string) string

func FmtImage

func FmtImage(image *models.Image) string

func FmtImageTagged

func FmtImageTagged(id, tag string) string

func FmtMono

func FmtMono(input string) string

Monospace font is enabled by ` charater that is not supported in Go multiline string literals So we should format it using ” and replacing them. characters ()_-.>=< are also reserved by telegram and we will replace them with their escaped ones.

func FmtStats

func FmtStats(stat models.Stats) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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