{"id":18363420,"url":"https://github.com/stuttgart-things/sthingsbase","last_synced_at":"2025-04-06T15:31:08.678Z","repository":{"id":150837763,"uuid":"623288143","full_name":"stuttgart-things/sthingsBase","owner":"stuttgart-things","description":"module providing basic golang functions","archived":false,"fork":false,"pushed_at":"2025-04-05T14:55:19.000Z","size":78,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-05T15:32:44.919Z","etag":null,"topics":["converting","filesystem","go-template","golang","regex","stuttgart-things"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuttgart-things.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-04T04:26:10.000Z","updated_at":"2024-10-04T16:27:30.000Z","dependencies_parsed_at":"2023-05-22T00:30:14.127Z","dependency_job_id":"e98a747d-7f48-4686-be19-314e08d0d9f2","html_url":"https://github.com/stuttgart-things/sthingsBase","commit_stats":null,"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2FsthingsBase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2FsthingsBase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2FsthingsBase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2FsthingsBase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/sthingsBase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247502790,"owners_count":20949330,"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":["converting","filesystem","go-template","golang","regex","stuttgart-things"],"created_at":"2024-11-05T23:06:27.435Z","updated_at":"2025-04-06T15:31:08.404Z","avatar_url":"https://github.com/stuttgart-things.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stuttgart-things/sthingsBase\nmodule providing basic golang functions\n\n## IMPORT\n\n\u003cdetails\u003e\u003csummary\u003ego.mod\u003c/summary\u003e\n\n```go\nmodule github..\ngo 1.20\n\nrequire (\n  ..\n  github.com/stuttgart-things/sthingsBase v0.1.3\n  ..\n)\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003ecode.go\u003c/summary\u003e\n\n```go\npackage xy\n\nimport (\n  ..\n  sthingsBase \"github.com/stuttgart-things/sthingsBase\"\n  ..\n)\n```\n\n\u003c/details\u003e\n\n## FUNCTIONS\n\n### VERIFICATION\n\n\u003cdetails\u003e\u003csummary\u003eCheck For String In Slice\u003c/summary\u003e\n\n\n```go\nmembers := []string{\"robbie\", \"marc\", \"gary\"}\ncheck := \"robbie\"\n\nisIn := CheckForStringInSlice(members, check)\n```\n\n\u003c/details\u003e\n\n\n### CONVERTING\n\nConvertIntegerToString\n\n### LOGGING\n\n\u003cdetails\u003e\u003csummary\u003eStdOutFileLogger\u003c/summary\u003e\n  tbd!\n\n  EXAMPLE USAGE:\n  ```\n  log := sthingsBase.StdOutFileLogger(logfilePath, \"2006-01-02 15:04:05\", 50, 3, 28)\n  ..\n  log.Info(\"gRPC server running on port \" + serverPort)\n  ```\n\u003c/details\u003e\n\n### FILESYSTEM\n\n\u003cdetails\u003e\u003csummary\u003eCreateNestedDirectoryStructure\u003c/summary\u003e\n  tbd!\n\n  EXAMPLE USAGE:\n  ```\n  sthingsBase.CreateNestedDirectoryStructure(\"/tmp/terraform\", 0777)\n  ```\n\u003c/details\u003e\n\n### FILE\n\n\u003cdetails\u003e\u003csummary\u003eReadFileToVariable\u003c/summary\u003e\n  tbd!\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eStoreVariableInFile\u003c/summary\u003e\n  tbd!\n\u003c/details\u003e\n\n### REGEX\n\n\u003cdetails\u003e\u003csummary\u003eGetRegexSubMatch\u003c/summary\u003e\n  tbd!\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eGetAllRegexMatches\u003c/summary\u003e\n  tbd!\n\u003c/details\u003e\n\n### TEMPLATING\n\n\u003cdetails\u003e\u003csummary\u003eRenderTemplateInline\u003c/summary\u003e\n\n  INPUT:\n\n  | templateData | renderOption | delimStart | delimEnd | templateVariables         |\n  |--------------|--------------|------------|----------|------------------------   |\n  | string       | string       | string     | string   | map[string]interface{}   |\n  | hello {{ .name }}   | \"missingkey=zero\"    | \"{{\"        |  \"}}\"     | vars:= map[string]interface{}{\"name\": \"delicious\",}\n\n  OUTPUT:\n\n  | yamlBytes | err   |\n  |-----------|-------|\n  | []byte    | error |\n  |           |       |\n\n  EXAMPLE USAGE:\n  ```\n  ...\n  yamlBytes, err := sthingsBase.RenderTemplateInline(\n\tmetaDataFile.template,\n\t\"missingkey=zero\",\n\t\"{{\",\n\t\"}}\",\n\tchartData)\n\n  if err != nil {\n    log.Fatal(err)\n  }\n  ```\n\n\u003c/details\u003e\n\nTASKFILE\n-------\n* TAG\n\n## LICENSE\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eAPACHE 2.0\u003c/b\u003e\u003c/summary\u003e\n\nCopyright 2023 patrick hermann.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\u003c/details\u003e\n\n## Author Information\n\n```bash\nPatrick Hermann, stuttgart-things 04/2022\n```\n\n## License\n\nLicensed under the Apache License, Version 2.0 (the \"License\").\n\nYou may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an _\"AS IS\"_ basis, without WARRANTIES or conditions of any kind, either express or implied.\n\nSee the License for the specific language governing permissions and limitations under the License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fsthingsbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Fsthingsbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fsthingsbase/lists"}