composer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct{}

func (Analyzer) Analyze

func (Analyzer) GetName

func (a Analyzer) GetName() string

type ComposerJSON

type ComposerJSON struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Homepage    string   `json:"homepage"`
	Keywords    []string `json:"keywords"`
	Type        string   `json:"type"`
	License     string   `json:"license"`
	Authors     []struct {
		Name  string `json:"name"`
		Role  string `json:"role"`
		Email string `json:"email,omitempty"`
	} `json:"authors"`
	Funding []struct {
		Type string `json:"type"`
		URL  string `json:"url"`
	} `json:"funding"`
	Require    map[string]string   `json:"require"`
	RequireDev map[string]string   `json:"require-dev"`
	Autoload   interface{}         `json:"autoload"`
	Scripts    map[string][]string `json:"scripts"`
}

func ParseComposerJSON

func ParseComposerJSON(file string) (ComposerJSON, error)

ParseComposerJSON parses the composer.json

func ParseComposerJSONFromByteArray

func ParseComposerJSONFromByteArray(content []byte) (ComposerJSON, error)

ParseComposerJSONFromByteArray parses the composer.json

Jump to

Keyboard shortcuts

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