git

package
v0.0.0-...-720af6a Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindClawFile

func FindClawFile(path string) (string, error)

FindClawFile will return the name of the .claw file at path.

Types

type ClawFile

type ClawFile struct {
	Content []byte
	Version string
	SHA256  string
}

ClawFile holds a Claw file's content and version of the git repo.

func GetClawFile

func GetClawFile(ctx context.Context, pkgPath, version string) (ClawFile, error)

GetClawFile retrieves the .claw file for a package at a commit version. version can be an empty string and the .claw file will be for the latest commit.

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

func (*Version) FromString

func (v *Version) FromString(s string) error

func (Version) IsZero

func (v Version) IsZero() bool

Jump to

Keyboard shortcuts

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