master > master: code - go project hinzugefügt

This commit is contained in:
RD
2021-10-30 10:19:16 +02:00
parent 37dea15b2b
commit f4287dfd8f
12 changed files with 669 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
package endpoints
/* ---------------------------------------------------------------- *
* IMPORTS
* ---------------------------------------------------------------- */
import (
"ads/internal/core/logging"
"ads/internal/setup"
)
/* ---------------------------------------------------------------- *
* ENDPOINT version
* ---------------------------------------------------------------- */
func Version() {
logging.SetForce(true)
logging.LogPlain(setup.Version())
}
/* ---------------------------------------------------------------- *
* ENDPOINT help
* ---------------------------------------------------------------- */
func Help() {
logging.SetForce(true)
logging.LogPlain(
"",
setup.Logo(),
// cli.Parser.Usage(nil),
setup.Help(),
"",
)
}

View File

@@ -0,0 +1,20 @@
package endpoints
/* ---------------------------------------------------------------- *
* IMPORTS
* ---------------------------------------------------------------- */
import (
"ads/internal/core/logging"
"ads/internal/setup"
)
/* ---------------------------------------------------------------- *
* ENDPOINT run
* ---------------------------------------------------------------- */
func Run(fnameConfig string) error {
logging.LogPlain(setup.Logo())
logging.LogWarn("Die Go-Implementierung ist noch unter Arbeit.")
return nil
}