bprepo2json

package
v0.0.0-...-82e14e4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPkgNameByFileName

func GetPkgNameByFileName(filename string) string

GetPkgNameByFileName is to get package name

func GetRepoNameByPkgName

func GetRepoNameByPkgName(pkgname string, repos map[string]*Repository) string

GetRepoNameByPkgName is to get repository

func NewRepositories

func NewRepositories(repoListFile string) map[string]*Repository

NewRepositories is to new global repositories

func WriteJSON

func WriteJSON(filepath string, buf []byte)

WriteJSON is to write json

Types

type Module

type Module struct {
	Name string   `json:"name"`
	Type string   `json:"type"`
	Pkg  *Package `json:"-"`
}

Module is a struct

type Package

type Package struct {
	Name    string      `json:"name"`
	Modules []Module    `json:"modules"`
	Repo    *Repository `json:"-"`
}

Package is a struct

type Repository

type Repository struct {
	Name     string    `json:"name"`
	Packages []Package `json:"packages"`
}

Repository is a struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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