kotlinruntime

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Files = func() *zip.Reader {
	cmd := exec.Command("git", "rev-parse", "--show-toplevel")
	out, err := cmd.CombinedOutput()
	if err != nil {
		panic(err)
	}
	dir := filepath.Join(strings.TrimSpace(string(out)), "kotlin-runtime", "scaffolding")
	w, err := os.CreateTemp("", "")
	if err != nil {
		panic(err)
	}
	defer os.Remove(w.Name())
	if err != nil {
		panic(err)
	}

	err = internal.ZipDir(dir, w.Name())
	if err != nil {
		panic(err)
	}

	info, err := w.Stat()
	if err != nil {
		panic(err)
	}
	_, _ = w.Seek(0, 0)
	zr, err := zip.NewReader(w, info.Size())
	if err != nil {
		panic(err)
	}
	return zr
}()

Files is the FTL Kotlin runtime scaffolding files.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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