{"id":22912164,"url":"https://github.com/simplyyan/cutinfo","last_synced_at":"2025-04-01T11:16:12.803Z","repository":{"id":218279015,"uuid":"746031536","full_name":"simplyYan/cutinfo","owner":"simplyYan","description":"go library to extract information based on references","archived":false,"fork":false,"pushed_at":"2024-08-27T17:55:56.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T06:22:31.463Z","etag":null,"topics":["extract-data","go","go-lib","go-library","golang","string-manipulation","strings"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplyYan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://github.com/simplyYan/cutinfo/blob/main/DONATE.MD"]}},"created_at":"2024-01-20T21:38:53.000Z","updated_at":"2024-08-27T17:55:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e6cab79-748a-465b-b74a-549c38bc789c","html_url":"https://github.com/simplyYan/cutinfo","commit_stats":null,"previous_names":["simplyyan/cutinfo"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyYan%2Fcutinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyYan%2Fcutinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyYan%2Fcutinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyYan%2Fcutinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplyYan","download_url":"https://codeload.github.com/simplyYan/cutinfo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628225,"owners_count":20808106,"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":["extract-data","go","go-lib","go-library","golang","string-manipulation","strings"],"created_at":"2024-12-14T04:27:02.676Z","updated_at":"2025-04-01T11:16:12.783Z","avatar_url":"https://github.com/simplyYan.png","language":"Go","funding_links":["https://github.com/simplyYan/cutinfo/blob/main/DONATE.MD"],"categories":[],"sub_categories":[],"readme":"![CutInfo](cutinfo.png)\n\n# CutInfo\n\nCutInfo is a lightweight Go library designed to extract information from text based on specified start and end tags. It is a simple and efficient tool for retrieving content between two reference points in a text string.\n\n## Features\n\n- Simple and easy-to-use API\n- Lightweight and fast\n- Retrieves content between specified start and end tags\n- Handles cases with multiple occurrences of end tags by selecting content up to the first occurrence\n\n## Objective\n\nThe main goal of CutInfo is to provide a quick and easy solution for extracting information from text strings. It is particularly useful for scenarios where you need to parse HTML or similar structures and retrieve specific content between tags.\n\n## How to Install\n\nTo use CutInfo in your Go project, you can simply run the following command:\n\n```bash\ngo get -u github.com/simplyYan/cutinfo\n```\n\n## How to use\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/simplyYan/cutinfo\"\n)\n\nfunc main() {\n    ci := cutinfo.New()\n\n    text := `\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003ctitle\u003eDocument\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cp class=\"test\"\u003eHello World\u003c/p\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n`\n\n    result := ci.Target(text, '\u003cp class=\"test\"\u003e', '\u003c/p\u003e')\n    fmt.Println(result) // Output: Hello World\n}\n```\n1. Import the cutinfo package.\n2. Create a new CutInfo instance using cutinfo.New().\n3. Use the Target method to extract content between specified start and end tags.\n\n\u003e A project founded by Wesley Yan Soares Brehmer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplyyan%2Fcutinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplyyan%2Fcutinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplyyan%2Fcutinfo/lists"}