<p>Hi,</p>
<p>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.</p>
<p>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.</p>
<p>Cheers</p>
<hr/>**评论:**<br/><br/>ctcherry: <pre><p>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.</p>
<p>Go is well suited to these kinds of networking tasks, I think it would be a good choice for your project.</p></pre>sh41: <pre><p>Yep.</p>
<p>Make sure not to miss <a href="https://godoc.org/net/http/httputil#ReverseProxy" rel="nofollow">https://godoc.org/net/http/httputil#ReverseProxy</a>, it's very relevant and a good starting point.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传