{"id":20388559,"url":"https://github.com/si3nloong/go-editorjs","last_synced_at":"2025-04-12T10:41:58.622Z","repository":{"id":38327794,"uuid":"262829421","full_name":"si3nloong/go-editorjs","owner":"si3nloong","description":"Go backend for Editor.js","archived":false,"fork":false,"pushed_at":"2024-04-30T23:16:19.000Z","size":49,"stargazers_count":10,"open_issues_count":3,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-26T05:33:21.605Z","etag":null,"topics":["editorjs","go","go-backend"],"latest_commit_sha":null,"homepage":"https://editorjs.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/si3nloong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-10T16:32:04.000Z","updated_at":"2024-10-16T12:09:41.000Z","dependencies_parsed_at":"2024-05-01T00:41:08.171Z","dependency_job_id":null,"html_url":"https://github.com/si3nloong/go-editorjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Fgo-editorjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Fgo-editorjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Fgo-editorjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Fgo-editorjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/si3nloong","download_url":"https://codeload.github.com/si3nloong/go-editorjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557004,"owners_count":21124156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["editorjs","go","go-backend"],"created_at":"2024-11-15T03:11:24.030Z","updated_at":"2025-04-12T10:41:58.601Z","avatar_url":"https://github.com/si3nloong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Editor.js (Go)\n\nServer-side implementation sample for the [Editor.js](https://github.com/codex-team/editor.js). It contains data validation and converts output from Editor.js to HTML.\n\n## Installation\n\n```bash\ngo get github.com/si3nloong/go-editorjs\n```\n\n## Basic usage\n\n```go\nimport (\n    editorjs \"github.com/si3nloong/go-editorjs\"\n)\n\nfunc main() {\n    b := []byte(`\n    {\n        \"time\": 1589098011153,\n        \"blocks\": [\n            {\n            \"type\": \"header\",\n            \"data\": {\n                \"text\": \"Editor.js\",\n                \"level\": 2\n            }\n            }\n        ],\n        \"version\": \"2.17.0\"\n    }\n    `)\n\n    ejs := editorjs.NewEditorJS()\n    buf := new(bytes.Buffer)\n    if err := ejs.ParseTo(b, buf); err != nil {\n        panic(err)\n    }\n\n    log.Println(\"HTML result =\u003e\", buf.String())\n}\n```\n\n## Example of Editor.js output\n\n```json\n{\n  \"time\": 1589098011153,\n  \"blocks\": [\n    {\n      \"type\": \"header\",\n      \"data\": {\n        \"text\": \"Editor.js\",\n        \"level\": 2\n      }\n    }\n  ],\n  \"version\": \"2.17.0\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsi3nloong%2Fgo-editorjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsi3nloong%2Fgo-editorjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsi3nloong%2Fgo-editorjs/lists"}