OpenCC API in golang, compatible with HenryQW's TTRSS OpenCC plugin.
10K+
OpenCC API in golang, compatible with HenryQW's TTRSS OpenCC plugin, with ARM support!
Listen to 3000 by default.
You can create an instance use docker run -d -p 3000:3000 --restart=always --name=opencc colinxkl/opencc-api-go
API call like this:
curl --request POST \
--url http://localhost:3000/t2s \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'title=繁體中文(中國大陸、澳門、馬新常稱繁體中文,台灣常稱正體中文或繁體中文)
&content=實際上,兩岸三地的繁體中文出版物並不拘泥於本地標準,有時使用其他字形和異體字是很頻繁的。'
Example response:
{"title":"繁体中文(中国大陆、澳门、马新常称繁体中文,台湾常称正体中文或繁体中文)","content":"实际上,两岸三地的繁体
中文出版物并不拘泥于本地标准,有时使用其他字形和异体字是很频繁的。"}
Conversions There are 10 conversion schemes available in OpenCC:
In order to use t2hk, the address you post to should be http://localhost:3000/t2hk.
Conversion scheme t2s will be used if don't specify any.
Params title, text to convert, optional content, text to convert, optional
Content type
Image
Digest
sha256:b409cebf4…
Size
6.7 MB
Last updated
9 months ago
docker pull colinxkl/opencc-api-go