杰利克斯
一个用Python编写的Java源代码的词法分析器
例子
代码
from jlex . lexer import lex_source_file
from jlex . type import Type
tokens = lex_source_file ( 'Example.java' )
for token in tokens :
if token . type not in [ Type . SPACE , Type . NEW_LINE ]:
print
Golang中的Hello World API
用Golang编写的简单Hello World API
原料药
只需运行此命令,api就会在localhost:8080上启动
go run main.go
终点
api端点列表
你好
输出带有Hello消息的简单json
网址: /hello/{name}
昂首阔步
您可以使用此命令大摇大摆
make serve-swagger