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.
|
||||
newRes := new()
|
||||
varName, graphItem, err := d.extractResourcePlantUML(line, newRes, n, request.PeerID)
|
||||
fmt.Println(varName, graphItem, err)
|
||||
if err != nil {
|
||||
return d, err
|
||||
}
|
||||
@@ -251,6 +252,7 @@ func (d *Workflow) extractResourcePlantUML(line string, resource resources.Resou
|
||||
|
||||
varName := splittedParams[0]
|
||||
splitted := strings.Split(splittedParams[1], "\"")
|
||||
fmt.Println(varName, splitted)
|
||||
|
||||
if len(splitted) <= 1 {
|
||||
return "", nil, errors.New("Can't deserialize Object, there's no name")
|
||||
|
||||
Reference in New Issue
Block a user