apernet / OpenGFW

OpenGFW is a flexible, easy-to-use, open source implementation of GFW (Great Firewall of China) on Linux
https://gfw.dev/
Mozilla Public License 2.0
9.47k stars 711 forks source link

怎样学习这个项目呢? #37

Closed jieqiyue closed 5 months ago

jieqiyue commented 7 months ago

怎样学习这个项目呢?如题 ,直接看源码吗?看了一下感觉不是很懂。好像是用到了一个go语言的库吗

IAALAI commented 6 months ago

本来就是GO语言写的,你竟然会问"好像是用到一个go语言的库吗"

macie commented 6 months ago

@jieqiyue for now you need to read the source. To learn Go language, start with:

jieqiyue commented 5 months ago

@jieqiyue for now you need to read the source. To learn Go language, start with:

image

请问这个就是根据这段json来写一个expr,这个expr能够描述这个json的特征(也就是说满足这个expr的话,就能定位这个特定的数据包是什么吧)。 然后我的问题是:这个json是怎么来的啊?是抓包来的吗?为什么特定是这样的格式啊?