swift

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Type string = "swift"

Variables

View Source
var Manifests = []string{"Package.resolved", ".package.resolved"}

Functions

func CheckRelatedFile

func CheckRelatedFile(file string) (string, bool, bool)

func Scan

func Scan(data interface{}) interface{}

Types

type Metadata

type Metadata struct {
	Object  Object `json:"object,omitempty"`
	Pins    []Pin  `json:"pins,omitempty"`
	Version int    `json:"version,omitempty"`
}

type Object

type Object struct {
	Pins []Pin `json:"pins,omitempty"`
}

type Pin

type Pin struct {
	Identity      string `json:"identity,omitempty"`
	Name          string `json:"package,omitempty"`
	Kind          string `json:"kind,omitempty"`
	RepositoryURL string `json:"repositoryURL,omitempty"`
	Location      string `json:"location,omitempty"`
	State         State  `json:"state,omitempty"`
}

type State

type State struct {
	Revision string `json:"revision,omitempty"`
	Version  string `json:"version,omitempty"`
}

Jump to

Keyboard shortcuts

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