Skip to content

Commit

Permalink
Split tgc converters
Browse files Browse the repository at this point in the history
  • Loading branch information
zli82016 committed Oct 2, 2024
1 parent 02d6c97 commit fc7c008
Show file tree
Hide file tree
Showing 52 changed files with 228 additions and 419 deletions.
153 changes: 77 additions & 76 deletions mmv1/provider/terraform_tgc.go

Large diffs are not rendered by default.

192 changes: 0 additions & 192 deletions mmv1/templates/tgc/resource_converters.go.tmpl

This file was deleted.

9 changes: 9 additions & 0 deletions mmv1/third_party/tgc/cai/string_helpers.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package cai

func ConvertInterfaceToStringArray(values []interface{}) []string {
stringArray := make([]string, len(values))
for i, v := range values {
stringArray[i] = v.(string)
}
return stringArray
}
Loading

0 comments on commit fc7c008

Please sign in to comment.