{"id":36549056,"url":"https://github.com/chentex/go-sif","last_synced_at":"2026-01-12T06:30:09.549Z","repository":{"id":57581878,"uuid":"69877511","full_name":"chentex/go-sif","owner":"chentex","description":"go-sif","archived":false,"fork":false,"pushed_at":"2017-10-21T07:03:46.000Z","size":4264,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T11:45:45.443Z","etag":null,"topics":["file","golang-application","string","tool"],"latest_commit_sha":null,"homepage":null,"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/chentex.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}},"created_at":"2016-10-03T14:17:43.000Z","updated_at":"2020-10-16T13:46:12.000Z","dependencies_parsed_at":"2022-09-26T19:30:56.267Z","dependency_job_id":null,"html_url":"https://github.com/chentex/go-sif","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/chentex/go-sif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chentex%2Fgo-sif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chentex%2Fgo-sif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chentex%2Fgo-sif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chentex%2Fgo-sif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chentex","download_url":"https://codeload.github.com/chentex/go-sif/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chentex%2Fgo-sif/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["file","golang-application","string","tool"],"created_at":"2026-01-12T06:30:08.817Z","updated_at":"2026-01-12T06:30:09.543Z","avatar_url":"https://github.com/chentex.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gosif\n\nString Into File: Insert strings into a file in a given line.\n\n\n[![Build Status](https://travis-ci.org/chentex/go-sif.svg)](https://travis-ci.org/chentex/go-sif)\n[![codecov](https://codecov.io/gh/chentex/go-sif/branch/master/graph/badge.svg)](https://codecov.io/gh/chentex/go-sif/branch/master)\n[![GoDoc](https://godoc.org/github.com/chentex/go-sif?status.svg)](https://godoc.org/github.com/chentex/go-sif)\n[![Go Report Card](https://goreportcard.com/badge/github.com/chentex/go-sif)](https://goreportcard.com/report/github.com/chentex/go-sif)\n\n\n## Installation\n\nFind binaries for linux and MacOS in the [releases page](https://github.com/chentex/go-sif/releases)\n\n## Getting Started\n\n### Insert line in a file\n\n```bash\ngosif insert -f /your/path/to/file.txt -l2 -t \"The text you want to insert\"\n```\n\n### Default values\n\n```bash\n-l, --line = default value will insert at the end of the file\n-t, --text = default value will insert an empty line\n```\n\n## Commands Usage\n\n### Insert\n\n```bash\nUsage:\n  gosif insert [flags]\n\nGlobal Flags:\n  -f, --file string   The file where you want to insert the string\n  -l, --line int      Line where the string is going to be inserted, if omited the string will be inserted\n in a new line at the end of the file. Count starts at 1. (default -1)\n  -t, --text string   The to insert into file\n```\n\n### Version\n\n```bash\nUsage:\n  gosif version\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchentex%2Fgo-sif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchentex%2Fgo-sif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchentex%2Fgo-sif/lists"}