# Functions
FinalSourceFilename returns the base name (in the same sense as [path.Base]) of the sub-path or local path portion of the given final source address.
MakeRemoteSource constructs a [RemoteSource] from its component parts.
MustParseSource is a thin wrapper around [ParseSource] that panics if it returns an error, or returns its result if not.
ParseFinalRegistrySource parses the given string as a final registry source address, or returns an error if it does not use the correct syntax for interpretation as a final registry source address.
ParseFinalSource attempts to parse the given string as any one of the three supported final source address types, recognizing which type it belongs to based on the syntax differences between the address forms.
ParseLocalSource interprets the given path as a local source address, or returns an error if it cannot be interpreted as such.
ParseRegistryPackage parses the given string as a registry package address, which is the same syntax as a registry source address with no sub-path portion.
ParseRegistrySource parses the given string as a registry source address, or returns an error if it does not use the correct syntax for interpretation as a registry source address.
ParseRemotePackage parses a standalone remote package address, which is a remote source address without any sub-path portion.
ParseRemoteSource parses the given string as a remote source address, or returns an error if it does not use the correct syntax for interpretation as a remote source address.
ParseSource attempts to parse the given string as any one of the three supported source address types, recognizing which type it belongs to based on the syntax differences between the address forms.
ResolveRelativeFinalSource is like [ResolveRelativeSource] but for [FinalSource] addresses instead of [Source] addresses.
ResolveRelativeSource calculates a new source address from the combination of two other source addresses.
SourceFilename returns the base name (in the same sense as [path.Base]) of the sub-path or local path portion of the given source address.
ValidSubPath returns true if the given string is a valid sub-path string as could be included in either a remote or registry source address.
# Structs
LocalSource represents a relative traversal to another path within the same source package as whatever source artifact included this path.
RegistrySource represents a source address referring to a set of versions published in a Module Registry.
RegistrySourceFinal annotates a [RegistrySource] with a specific version selection, thereby making it sufficient for selecting a single real source package.
No description provided by the author
No description provided by the author
# Interfaces
FinalSource is a variant of [Source] that always refers to a single specific package.
Source acts as a tagged union over the three possible source address types, for situations where all three are acceptable.