domain

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDomainGithub    = "github.com"
	DefaultDomainGitlab    = "gitlab.com"
	DefaultDomainBitbucket = "bitbucket.org"
)

Variables

View Source
var (
	ErrInvalidFile = func(file string, message string) error {
		return fmt.Errorf("invalid source format: %s => %s", file, message)
	}
)

Functions

func GetAPIDomain

func GetAPIDomain(api string) string

func IsDomainAPIValid

func IsDomainAPIValid(domain string) bool

Types

type File

type File struct {
	Domain string
	User   string
	Repo   string
	Path   string
	Ref    string
}

func ParseFile

func ParseFile(file string) (*File, error)

Jump to

Keyboard shortcuts

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