mod

package
v0.0.0-...-198a000 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleFile

type ModuleFile struct {
	// Absolute path to Root of Module
	Root string

	// Relative from module
	Filename string
}

Implements golang.org/x/mod/zip.File interface using 'os' package functions.

Interesting property:

Root + Filename = abs path to file in OS

func (ModuleFile) Lstat

func (m ModuleFile) Lstat() (os.FileInfo, error)

func (ModuleFile) Open

func (m ModuleFile) Open() (io.ReadCloser, error)

func (ModuleFile) Path

func (m ModuleFile) Path() string

Jump to

Keyboard shortcuts

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