app

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

* * @Author: TheLife * @Date: 2021/7/22 下午4:18

* * @Author: TheLife * @Date: 2020-3-27 6:59 下午 * 统计代码行数

Index

Constants

This section is empty.

Variables

View Source
var RestCmd = &cobra.Command{
	Use:     "statisticsLine",
	Short:   "statisticsLine a count the number of code lines",
	Example: `statisticsLine -p . -e -s .go`,
	Run: func(cmd *cobra.Command, args []string) {
		lineCount := line.Run()
		fmt.Printf("%d line", lineCount)
	},
}

Functions

This section is empty.

Types

type StatisticsLine

type StatisticsLine struct {
	// the dir where souce file stored
	RootPath string
	// exclude these sub dirs
	ExcludeDirs []string
	// the suffix name you care
	SuffixName string
	// contains filtered or unexported fields
}

func (*StatisticsLine) Run

func (s *StatisticsLine) Run() int

Jump to

Keyboard shortcuts

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