Skip to content

Commit

Permalink
code layout
Browse files Browse the repository at this point in the history
  • Loading branch information
dvaumoron committed Jan 4, 2024
1 parent 4b55c19 commit 413d45d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 32 deletions.
32 changes: 0 additions & 32 deletions glu/text/converter.go

This file was deleted.

8 changes: 8 additions & 0 deletions glu/text/globals.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ func wrappedNewTextFile(_ *starlark.Thread, b *starlark.Builtin, args starlark.T
builder := new(strings.Builder)
return glu.Wrapper{Inner: builder, WType: &textFileWrappedType}, nil
}

func convertToStringSlice(args starlark.Tuple) []string {
res := make([]string, 0, len(args))
for _, arg := range args {
res = append(res, glu.ConvertToString(arg))
}
return res
}

0 comments on commit 413d45d

Please sign in to comment.