{"id":20214140,"url":"https://github.com/masterminds/goutils","last_synced_at":"2025-05-16T13:03:12.658Z","repository":{"id":14772656,"uuid":"17494249","full_name":"Masterminds/goutils","owner":"Masterminds","description":"GoUtils is a Go implementation of some string manipulation libraries of Apache Commons. This is an open source project aimed at providing Go users with utility functions to manipulate strings in various ways.","archived":false,"fork":false,"pushed_at":"2021-02-04T20:16:33.000Z","size":166,"stargazers_count":99,"open_issues_count":4,"forks_count":26,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-14T05:12:24.293Z","etag":null,"topics":["go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Masterminds.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-06T22:02:45.000Z","updated_at":"2025-02-28T03:02:13.000Z","dependencies_parsed_at":"2022-09-26T20:11:19.966Z","dependency_job_id":null,"html_url":"https://github.com/Masterminds/goutils","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Masterminds%2Fgoutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Masterminds%2Fgoutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Masterminds%2Fgoutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Masterminds%2Fgoutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Masterminds","download_url":"https://codeload.github.com/Masterminds/goutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535826,"owners_count":22087398,"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":["go","golang"],"created_at":"2024-11-14T06:14:04.823Z","updated_at":"2025-05-16T13:03:12.615Z","avatar_url":"https://github.com/Masterminds.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"GoUtils\n===========\n[![Stability: Maintenance](https://masterminds.github.io/stability/maintenance.svg)](https://masterminds.github.io/stability/maintenance.html)\n[![GoDoc](https://godoc.org/github.com/Masterminds/goutils?status.png)](https://godoc.org/github.com/Masterminds/goutils) [![Build Status](https://travis-ci.org/Masterminds/goutils.svg?branch=master)](https://travis-ci.org/Masterminds/goutils) [![Build status](https://ci.appveyor.com/api/projects/status/sc2b1ew0m7f0aiju?svg=true)](https://ci.appveyor.com/project/mattfarina/goutils)\n\n\nGoUtils provides users with utility functions to manipulate strings in various ways. It is a Go implementation of some\nstring manipulation libraries of Java Apache Commons. GoUtils includes the following Java Apache Commons classes:\n* WordUtils    \n* RandomStringUtils  \n* StringUtils (partial implementation)\n\n## Installation\nIf you have Go set up on your system, from the GOPATH directory within the command line/terminal, enter this:\n\n\tgo get github.com/Masterminds/goutils\n\nIf you do not have Go set up on your system, please follow the [Go installation directions from the documenation](http://golang.org/doc/install), and then follow the instructions above to install GoUtils.\n\n\n## Documentation\nGoUtils doc is available here: [![GoDoc](https://godoc.org/github.com/Masterminds/goutils?status.png)](https://godoc.org/github.com/Masterminds/goutils)\n\n\n## Usage\nThe code snippets below show examples of how to use GoUtils. Some functions return errors while others do not. The first instance below, which does not return an error, is the `Initials` function (located within the `wordutils.go` file).\n\n    package main\n\n    import (\n        \"fmt\"\n    \t\"github.com/Masterminds/goutils\"\n    )\n\n    func main() {\n\n    \t// EXAMPLE 1: A goutils function which returns no errors\n        fmt.Println (goutils.Initials(\"John Doe Foo\")) // Prints out \"JDF\"\n\n    }\nSome functions return errors mainly due to illegal arguements used as parameters. The code example below illustrates how to deal with function that returns an error. In this instance, the function is the `Random` function (located within the `randomstringutils.go` file).\n\n    package main\n\n    import (\n        \"fmt\"\n        \"github.com/Masterminds/goutils\"\n    )\n\n    func main() {\n\n        // EXAMPLE 2: A goutils function which returns an error\n        rand1, err1 := goutils.Random (-1, 0, 0, true, true)  \n\n        if err1 != nil {\n\t\t\tfmt.Println(err1) // Prints out error message because -1 was entered as the first parameter in goutils.Random(...)\n\t\t} else {\n\t\t\tfmt.Println(rand1)\n\t\t}\n\n    }\n\n## License\nGoUtils is licensed under the Apache License, Version 2.0. Please check the LICENSE.txt file or visit http://www.apache.org/licenses/LICENSE-2.0 for a copy of the license.\n\n## Issue Reporting\nMake suggestions or report issues using the Git issue tracker: https://github.com/Masterminds/goutils/issues\n\n## Website\n* [GoUtils webpage](http://Masterminds.github.io/goutils/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasterminds%2Fgoutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasterminds%2Fgoutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasterminds%2Fgoutils/lists"}