go_api_func_language.py 434 B

12345678910111213
  1. from .tool.func import *
  2. async def api_func_language(legacy = 'on', data = 'Test'):
  3. other_set = {}
  4. if flask.request.method == 'POST':
  5. other_set["data"] = flask.request.form.get('data', '')
  6. other_set["data"] = other_set["data"].split(' ')
  7. else:
  8. other_set["data"] = [data]
  9. other_set["legacy"] = legacy
  10. return flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set))