Help us shape the future of Go! Take the 2026 Go Developer Survey

cardutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMusicListCard

func BuildMusicListCard[T any](ctx context.Context, resList []*T, transFunc musicItemTransFunc[T], resourceType neteaseapi.CommentType, keywords ...string) (content *larkutils.TemplateCardContent, err error)

func MusicItemTransAlbum

func MusicItemTransAlbum(album *neteaseapi.Album) *neteaseapi.SearchMusicItem

Types

type CardEntitySendContent

type CardEntitySendContent struct {
	Type string              `json:"type"`
	Data *CardEntitySendData `json:"data"`
}

func NewCardEntityContent

func NewCardEntityContent(cardID string) *CardEntitySendContent

func (*CardEntitySendContent) String

func (e *CardEntitySendContent) String() string

type CardEntitySendData

type CardEntitySendData struct {
	CardID string `json:"card_id"`
}

type CardStreamingSettings

type CardStreamingSettings struct {
	Config struct {
		StreamingMode bool `json:"streaming_mode"`
	} `json:"config"`
}

func DisableCardStreaming

func DisableCardStreaming() *CardStreamingSettings

func (*CardStreamingSettings) String

func (s *CardStreamingSettings) String() string

Jump to

Keyboard shortcuts

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