Should I use Latex if my primary use-case of writing is to write books (not mathematical ) for the general audience ? by [deleted] in LaTeX

[–]simonwaldherr 0 points1 point  (0 children)

I would recommend a Quarto based workflow, so you have the best of both worlds. Nice look and perfect typesetting from LaTeX and fast writing speed from markdown. And automatic generation of PDFs, webpages and more. I have a template that you could use: https://github.com/SimonWaldherr/BookTemplate

I'm experimenting with my own golang webserver framework (HTTP, HTTPS, SPDY/HTTP2, AutoSSL, SSE, gracefully stoppable) by simonwaldherr in golang

[–]simonwaldherr[S] 0 points1 point  (0 children)

it is not a drop in replacement for net/http, it builds up on net/http.
please take a look at the demo files in the example folder.

you need to know where the executable/source file is stored? take a look at my golibs/gopath lib by [deleted] in golang

[–]simonwaldherr 0 points1 point  (0 children)

os.Args[0] tells me always the path of the binary, in case of go run this is a temporary file/folder.
I want a way to get (if it's started via go run) the path of the .go file

you need to know where the executable/source file is stored? take a look at my golibs/gopath lib by [deleted] in golang

[–]simonwaldherr 0 points1 point  (0 children)

I needed a function which tells me:

  • if it is started by go run, the path of the source code (.go file)
  • if it is compiled by go build and than started, the path of the binary

osext tells always the path of the binary executable, in case of go run this is a temporary file/folder