pkg

package
v0.0.0-...-28a3850 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadRepository

func DownloadRepository(link string, outputPath string) (string, error)

func GenerateCLOC

func GenerateCLOC(path string) ([]byte, error)

GenerateCLOC generates the CLOC of a project using https://github.com/AlDanial/cloc binary

func GenerateSolFlowerJSON

func GenerateSolFlowerJSON(jsonData []byte, outputPath string) ([]byte, error)

GenerateSolFlowerJSON converts the json provided by cloc to another json file. This json file is stored in a specified output path. This json file is needed for generating the code flower shape.

func IsPortOpen

func IsPortOpen(port int) bool

Check if a port is available

func OpenBrowser

func OpenBrowser(url string)

func Unzip

func Unzip(src string, dest string) ([]string, error)

Unzip takes a src zip file and extract it in the specified destination folder. It also generates the extracted file path

Types

type File

type File struct {
	Language string
	Code     int
}

type Node

type Node struct {
	Name     string  `json:"name"`
	Children []*Node `json:"children,omitempty"`
	Language string  `json:"language,omitempty"`
	Size     int     `json:"size,omitempty"`
}

Node struct is needed for generating the SOLFLOWER json file

Jump to

Keyboard shortcuts

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