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

swift

package
v3.1.61 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AcceptJSON  = "application/vnd.swift.registry.v1+json"
	AcceptSwift = "application/vnd.swift.registry.v1+swift"
	AcceptZip   = "application/vnd.swift.registry.v1+zip"
)

https://github.com/swiftlang/swift-package-manager/blob/main/Documentation/PackageRegistry/Registry.md#35-api-versioning

Variables

This section is empty.

Functions

Types

type EnumeratePackageVersionsResponse

type EnumeratePackageVersionsResponse struct {
	Releases map[string]Release `json:"releases"`
}

type LookupPackageIdentifiersResponse

type LookupPackageIdentifiersResponse struct {
	Identifiers []string `json:"identifiers"`
}

type PackageVersionMetadataResponse

type PackageVersionMetadataResponse struct {
	ID        string                           `json:"id"`
	Version   string                           `json:"version"`
	Resources []Resource                       `json:"resources"`
	Metadata  *swift_module.SoftwareSourceCode `json:"metadata"`
}

type Release

type Release struct {
	URL string `json:"url"`
}

type Resource

type Resource struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	Checksum string `json:"checksum"`
}

Source Files

  • swift.go

Jump to

Keyboard shortcuts

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