lib

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateEmbeddedPackage

func GenerateEmbeddedPackage(targetDirPath, outputPath string) error

func GenerateSelfPackage

func GenerateSelfPackage(srcPath, outputPath string) error

func GoBuild

func GoBuild(opt *BuildOption) (string, error)

func GoGet

func GoGet(getPath string) (string, error)

func PrintFs

func PrintFs(fileSystem http.FileSystem) error

func RemoveContents

func RemoveContents(dir string) error

func WriteFs

func WriteFs(fileSystem http.FileSystem, dst string) error

Types

type BuildOption

type BuildOption struct {
	Option
	OutputPath string
	BuildPath  string
	OS         string
	Arch       string
}

type Option

type Option struct {
	Dir string
	Env []string
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(port string) *Server

func (*Server) AddApiHandler

func (s *Server) AddApiHandler() error

func (*Server) AddFileHandlerFromFs

func (s *Server) AddFileHandlerFromFs(fs http.FileSystem) error

func (*Server) AddFileHandlerFromPath

func (s *Server) AddFileHandlerFromPath(rootPath string) error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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