Terminal output to webserver

Hi, i’,m kinda new to GoLang. I’m creating a application with an API where the users have to give their input. After that there will be an output in the terminal. I want to display the output from the terminal on my webserver.
I already made a webserver (http localhost:8080) but i just don’t know how to get the output from the terminal to the webserver.