utils

package
v0.0.0-...-5de3a08 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeBlock

func CodeBlock(in string) string

func JSON

func JSON(ref interface{}) string

func JSONBlock

func JSONBlock(ref interface{}) string

func Map

func Map(vs []string, f func(string) string) []string

Reference: https://gobyexample.com/collection-functions

func SlackAttachmentError

func SlackAttachmentError(w http.ResponseWriter, errorMessage string)

Types

type ByteSize

type ByteSize int64

func ParseByteSize

func ParseByteSize(str string) (ByteSize, error)

func (ByteSize) String

func (size ByteSize) String() string

Directories

Path Synopsis
bot
mock_bot
Package mock_bot is a generated GoMock package.
Package mock_bot is a generated GoMock package.

Jump to

Keyboard shortcuts

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