mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2025-01-20 09:09:22 +02:00
30 lines
549 B
Go
30 lines
549 B
Go
package grpc_client
|
|
|
|
import (
|
|
"github.com/ManyakRus/crud_generator/internal/config"
|
|
"github.com/ManyakRus/starter/log"
|
|
)
|
|
|
|
// CreateAllFiles - создаёт все файлы в папке grpc proto
|
|
func CreateAllFiles() error {
|
|
var err error
|
|
|
|
if config.Settings.NEED_CREATE_GRPC == false {
|
|
return err
|
|
}
|
|
|
|
err = CreateGRPCClient()
|
|
if err != nil {
|
|
log.Error("CreateGRPCClient() error: ", err)
|
|
return err
|
|
}
|
|
|
|
err = CreateGRPCClientTest()
|
|
if err != nil {
|
|
log.Error("CreateGRPCClientTest() error: ", err)
|
|
return err
|
|
}
|
|
|
|
return err
|
|
}
|