groovy

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GradleTree

func GradleTree(ctx context.Context, dir *model.File) []*model.DepGraph

func ParseGradle

func ParseGradle(ctx context.Context, files []*model.File) []*model.DepGraph

ParseGradle 解析gradle脚本

func ParseGroovy

func ParseGroovy(file *model.File) *model.DepGraph

ParseGroovy 解析groovy文件

Types

type Sca

type Sca struct{}

func (Sca) Filter

func (sca Sca) Filter(relpath string) bool

func (Sca) Language

func (sca Sca) Language() model.Language

func (Sca) Sca

func (sca Sca) Sca(ctx context.Context, parent *model.File, files []*model.File, call model.ResCallback)

type Variable

type Variable map[string]string

groovy 变量表

func (Variable) Replace

func (v Variable) Replace(text string) string

Replace 使用当前变量表中的变量替换文本中的变量值

func (Variable) Scan

func (v Variable) Scan(file *model.File)

Scan 提取文件中的变量

Jump to

Keyboard shortcuts

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