1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2025-01-20 09:09:22 +02:00

30 lines
549 B
Go
Raw Normal View History

2023-10-26 11:39:29 +03:00
package nrpc_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 = CreateNRPCClient()
if err != nil {
log.Error("CreateNRPCClient() error: ", err)
return err
}
err = CreateNRPCClientTest()
if err != nil {
log.Error("CreateNRPCClientTest() error: ", err)
return err
}
return err
}