attachments

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTag added in v0.10.0

func BuildTag(sgid string) string

BuildTag returns a bc-attachment tag for an sgid.

Types

type Attachment

type Attachment struct {
	SGID        string
	ContentType string
	Filename    string
	URL         string
	Href        string
	Width       string
	Height      string
	Caption     string
}

Attachment represents a Basecamp attachment with metadata

func ParseAttachments

func ParseAttachments(htmlContent string) []Attachment

ParseAttachments extracts all bc-attachment elements from HTML content

func (*Attachment) GetDisplayName

func (a *Attachment) GetDisplayName() string

GetDisplayName returns the best display name for the attachment

func (*Attachment) IsImage

func (a *Attachment) IsImage() bool

IsImage returns true if the attachment is an image based on its content type

Jump to

Keyboard shortcuts

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