Hi,
I have been playing around with Go for the past few weeks and thoroughly enjoying it, but I have caught myself just doing the same old, same old, making CRUD apps, playing around with APIs and what not. I am looking to do something new (for me, at least). A problem I currently have is: I would like to have a weekly budget for certain websites, and have their usage tracked, then blocked for the week if the threshold is broken. I am aware of existing solutions, but not all that comfortable with installing such an application.
I'm sure with a bit of digging this can be done with Swift by making a macOS application, but I'd really like to explore some of the OS-level stuff Go offers, as I have only ever done web application programming.
Cheers
评论:
ctcherry:
sh41:The way I image this working is creating a proxy in go with the tracking/blocking features you want, and then configuring your browsers to use this proxy.
Go is well suited to these kinds of networking tasks, I think it would be a good choice for your project.
Yep.
Make sure not to miss https://godoc.org/net/http/httputil#ReverseProxy, it's very relevant and a good starting point.
