k1LoW / tbls

tbls is a CI-Friendly tool for document a database, written in Go.
MIT License
3.4k stars 166 forks source link

Library version? Can I import tbls as a lib then print info as my http service is running? #381

Closed haunt98 closed 1 year ago

haunt98 commented 1 year ago

For example, I have a Go HTTP service, I want each time my service starts, it output data generate from tbls. Is it possible?

k1LoW commented 1 year ago

Although tbls is not designed to be embedded as a library, I think it is possible, depending on how it is done.

Read the code and you be the judge 👍

k1LoW commented 1 year ago

The entry point for tbls as the CLI tool is here.

We could say that the github.com/k1LoW/tbls/cmd package uses the github.com/k1LoW/tbls package as a library.

haunt98 commented 1 year ago

Seems good for a start, I will close issue for now :) Thank you for guiding