dpae

command module
v0.0.0-...-eac8a36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 6 Imported by: 0

README

Envoi d'une DPAE vers l'URSSAF

Projet à titre d'exemple et recherche.

Installation

go get github.com/flibustenet/dpae

Installer l'exécutable dpae

go install

Ou compiler sur place

go build -o run_dpae

Utilisation

Créer un fichier dpae_test.json en suivant l'exemple dpae_sample.json

Tester ce fichier avec l'exécutable compilé précédement.

./run_dpae dpae_test.json

Il va renvoyer idflux et le certificat.

./run_dpae -v dpae_test.json

Idem mais affiche également le fichier xml envoyé.

Librairie

Il est également possible de l'utiliser sous forme d'une librairie en Go en prenant exemple sur le fichier main.go.

Soit en lisant un fichier json soit en construisant directement le struct dpae.Dpae

Tests

Pour lancer les tests fonctionnels sur le fichier dpae_test.json :

$ export DPAE_TEST_JSON=dpae_test.json
$ go test -v ./... -count=1

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL