Categorygithub.com/gerardoCD/go-utils
modulepackage
0.0.0-20201209054443-ef6bad726fee
Repository: https://github.com/gerardocd/go-utils.git
Documentation: pkg.go.dev

# README

Log-Http

This is a powerful logger for services.

Installation

Install and start the server.

$ go run main.go
$ go get github.com/gerardoCD/go-utils 

Import in your project


import (
	utils "github.com/gerardoCD/go-utils"
)

Features!

  • Generate SoapRequest with template
  • Generate SoapCall
  • Generate Error Class

Examples!



func main() {
	url := env.URISoap + "/AppClientesBackendServicios/"
	template := templates.RequestSOAP
	httpReq, err := utils.GenerateSOAPRequest(requestSoap,url,template)
	if err != nil {
		lgs.Error("Generando SOAP Request")
		return nil, err
	}
	
	//PETICIÓN A SERVICIO SOAP
	responseSoap, err := utils.SoapCall(httpReq)
	if err != nil {
		lgs.Error("Llamada servicio SOAP")
		return nil, err
	}
}
  

# Functions

Helper response Error and logger.
Construlle Request SOAP.
Realiza llamda SOAP - Despues de construccion del request.

# Structs

No description provided by the author