/
githubmirror
/
sqlc
Обзор
Документация
Войти
/
githubmirror
/
sqlc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/sql/astutils/join.go
21 строка
336 B
Radhi
feat(mysql): Implement cast function parser (#2473)
30 июл 2023, 23:27
Не верифицирован
30 июл 2023, 23:27
39f16cc
Код
Авторство
О чём код?
package astutils import ( "strings" "github.com/sqlc-dev/sqlc/internal/sql/ast" ) func Join(list *ast.List, sep string) string { if list == nil { return "" } var items []string for _, item := range list.Items { if n, ok := item.(*ast.String); ok { items = append(items, n.Str) } } return strings.Join(items, sep) }