fixtures

package
v2.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SimpleMessageJSON = `` /* 778-byte string literal not displayed */

	ThreadMessage1JSON = `` /* 4735-byte string literal not displayed */

	ThreadedExportedMessage1JSON = `` /* 1626-byte string literal not displayed */

	BotMessageThreadParentJSON = `` /* 3083-byte string literal not displayed */

	BotMessageThreadChildJSON = `` /* 1873-byte string literal not displayed */

)
View Source
const (
	MpIM = `` /* 923-byte string literal not displayed */

	MpIMNoMembers = `` /* 889-byte string literal not displayed */

	MpIMnoMembersFixed = `` /* 918-byte string literal not displayed */

)
View Source
const FileJPEG = `` /* 2925-byte string literal not displayed */
View Source
const TestChannel = `` /* 997-byte string literal not displayed */
View Source
const TestConversationExportJSON = `` /* 11394-byte string literal not displayed */
View Source
const TestConversationJSON = `` /* 7842-byte string literal not displayed */

TestConversationJSON channel: CHM82GF99

View Source
const TestMessage = `` /* 522-byte string literal not displayed */
View Source
const UsersJSON = `` /* 11818-byte string literal not displayed */

Variables

View Source
var TestUsers = []slack.User{
	{ID: "LOL1", Name: "yippi", Deleted: false},
	{ID: "DELD", Name: "ka", Deleted: true},
	{ID: "LOL3", Name: "yay", IsRestricted: true},
	{ID: "LOL4", Name: "motherfucker", Deleted: false, IsBot: true},
}

Functions

func FilledBuffer

func FilledBuffer(sz int) *bytes.Buffer

FilledBuffer returns buffer that filled with sz bytes of 0x00.

func FilledFile added in v2.0.3

func FilledFile(sz int) *os.File

func Load

func Load[T any](js string) T

Load loads a json data into T, or panics.

func LoadPtr added in v2.2.9

func LoadPtr[T any](js string) *T

LoadPtr loads a json data into *T, or panics.

func RandString

func RandString(sz int) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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