go-micro: github.com/micro/go-micro/runtime/local/source Index | Files | Directories

package source

import "github.com/micro/go-micro/runtime/local/source"

Package source retrieves source code


Package Files

options.go source.go

type Option Uses

type Option func(o *Options)

func Path Uses

func Path(p string) Option

Local path for repository

type Options Uses

type Options struct {
    // local path to download source
    Path string

type Repository Uses

type Repository struct {
    // Name or repo
    Name string
    // Local path where repo is stored
    Path string
    // URL from which repo was retrieved
    URL string

Repository is the source repository

type Source Uses

type Source interface {
    // Fetch repo from a url
    Fetch(url string) (*Repository, error)
    // Commit and upload repo
    Commit(*Repository) error
    // The sourcerer
    String() string

Source retrieves source code


goPackage golang is a source for Go

Updated 2020-09-20. Refresh now. Tools for package owners.