mo_content

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUnexpectedFormat = errors.New("unexpected format")
)

Functions

This section is empty.

Types

type Content

type Content struct {
	Raw    json.RawMessage
	Type   string `path:"type" json:"type"`
	Name   string `path:"name" json:"name"`
	Path   string `path:"path" json:"path"`
	Sha    string `path:"sha" json:"sha"`
	Size   int    `path:"size" json:"size"`
	Target string `path:"target" json:"target"`
}

type Contents

type Contents interface {
	File() (c Content, found bool)
	Dir() (c []Content, found bool)
	Symlink() (c Content, found bool)
	Submodule() (c Content, found bool)
}

func NewContents

func NewContents(j es_json.Json) (c Contents, err error)

Jump to

Keyboard shortcuts

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