Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDataflow ¶
func CreateDataflow(dataflow []models.DataFlowStep, content []byte, startLine int, language, filePath, variable string) []models.DataFlow
----------------------------------------------------------------------------- CreateDataflow - Creates a data flow based on the provided steps and content. -----------------------------------------------------------------------------
Parameters:
- dataflow ([]models.DataFlowStep): List of data flow steps.
- content ([]byte): File content as a byte slice.
- startLine (int): Starting line number in the file.
- language (string): Programming language of the file.
- filePath (string): Path to the file.
- variable (string): Variable name to highlight.
Returns:
- ([]models.DataFlow): List of created data flow objects.
-----------------------------------------------------------------------------
func CreateDataflowInitial ¶
----------------------------------------------------------------------------- CreateDataflowInitial - Creates an initial data flow step based on a given configuration. -----------------------------------------------------------------------------
Parameters:
- config (models.Config): Configuration object containing file path, start line, variable, and language.
Returns:
- ([]models.DataFlow): List containing the initial data flow object.
-----------------------------------------------------------------------------
func RemoveDuplicateDataFlowStep ¶
func RemoveDuplicateDataFlowStep(elements []models.DataFlowStep, startLine uint32, variable string) []models.DataFlowStep
----------------------------------------------------------------------------- RemoveDuplicateDataFlowStep - Removes duplicates in the data flow while preserving the order. -----------------------------------------------------------------------------
Parameters:
- elements ([]models.DataFlowStep): List of data flow steps.
- startLine (uint32): Starting line number in the file.
- variable (string): Variable name to check for duplicates.
Returns:
- ([]models.DataFlowStep): List of data flow steps without duplicates.
-----------------------------------------------------------------------------
Types ¶
This section is empty.