1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-16 21:52:42 +02:00
crud_generator/internal/create_files/nrpc_client/nrpc_client.go
2024-09-05 17:45:50 +03:00

30 lines
549 B
Go

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
}