Documentation
¶
Overview ¶
Package upload provides simple helpers for parsing multipart file uploads and parsing simple skill definition payloads used by the UI.
This package intentionally uses only the Go standard library so it can be used in low-dependency, domain-agnostic layers of the project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectMediaType ¶
DetectMediaType attempts to identify common media types by inspecting the initial bytes of the provided data. Returns an empty string when the type is unknown.
Types ¶
type Skill ¶
type Skill struct {
Name string `json:"name"`
Description string `json:"description"`
Template string `json:"template"`
}
Skill represents a simple skill definition uploaded by the UI.
func ParseSkill ¶
ParseSkill attempts to parse a skill definition from JSON data. The format is intentionally small and JSON-only to avoid adding dependencies for YAML parsing. If YAML support is required later, the caller may convert before calling into this package.