mardi 31 mars 2020

GoLang - Is "run test" option a decorator provided by "testing" package?

In the below code snippet from vcode IDE(could not paste the option):

enter image description here

After importing testing package, we see run test, debug test, run package tests & run file tests option as hyper link.


To understand the mechanics behind it,

1) How are these options enabled? immediately after importing testing package

2) Are these options similar to python decorators?

Aucun commentaire:

Enregistrer un commentaire