setup
This commit is contained in:
@@ -147,6 +147,7 @@ func (d *Workflow) ExtractFromPlantUML(plantUML multipart.File, request *tools.A
|
|||||||
if strings.Contains(line, n+"(") && !strings.Contains(line, "!procedure") { // should exclude declaration of type.
|
if strings.Contains(line, n+"(") && !strings.Contains(line, "!procedure") { // should exclude declaration of type.
|
||||||
newRes := new()
|
newRes := new()
|
||||||
varName, graphItem, err := d.extractResourcePlantUML(line, newRes, n, request.PeerID)
|
varName, graphItem, err := d.extractResourcePlantUML(line, newRes, n, request.PeerID)
|
||||||
|
fmt.Println(varName, graphItem, err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return d, err
|
return d, err
|
||||||
}
|
}
|
||||||
@@ -251,6 +252,7 @@ func (d *Workflow) extractResourcePlantUML(line string, resource resources.Resou
|
|||||||
|
|
||||||
varName := splittedParams[0]
|
varName := splittedParams[0]
|
||||||
splitted := strings.Split(splittedParams[1], "\"")
|
splitted := strings.Split(splittedParams[1], "\"")
|
||||||
|
fmt.Println(varName, splitted)
|
||||||
|
|
||||||
if len(splitted) <= 1 {
|
if len(splitted) <= 1 {
|
||||||
return "", nil, errors.New("Can't deserialize Object, there's no name")
|
return "", nil, errors.New("Can't deserialize Object, there's no name")
|
||||||
|
|||||||
Reference in New Issue
Block a user