Help us shape the future of Go! Take the 2026 Go Developer Survey

session

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildType

type BuildType int
const (
	DefaultType BuildType = iota
	JsType
)

type Session

type Session struct {

	// Fileserver for storing and serving generated artifacts
	Fileserver services.Fileserver

	// AssetsArchives are the pre-compiled standard library archives created in the generation process...
	// the format is map[path]map[minified]*compiler.Archive
	AssetsArchives map[string]map[bool]*compiler.Archive
	// contains filtered or unexported fields
}

func New

func New(tags []string, root billy.Filesystem, assetsArchives map[string]map[bool]*compiler.Archive, fileserver services.Fileserver, configValidExtensions []string) *Session

func (*Session) BuildContext

func (s *Session) BuildContext(buildType BuildType, suffix string) *build.Context

func (*Session) Filesystem

func (s *Session) Filesystem(dir string) billy.Filesystem

Gets either sourcefs, rootfs or pathfs depending on the path, and if the package is part of source

func (*Session) GoPath

func (s *Session) GoPath() billy.Filesystem

func (*Session) HasSource

func (s *Session) HasSource(path string) bool

func (*Session) SetSource

func (s *Session) SetSource(source map[string]map[string]string) error

Jump to

Keyboard shortcuts

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