{"id":17617502,"url":"https://github.com/gowizzard/goten","last_synced_at":"2026-01-12T07:30:48.499Z","repository":{"id":43417956,"uuid":"325644303","full_name":"gowizzard/goten","owner":"gowizzard","description":"To create a random token with the length you want. The random seed is based on the current time with nano seconds.","archived":false,"fork":false,"pushed_at":"2023-02-22T15:18:23.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T02:43:31.449Z","etag":null,"topics":["generator","go","golang","password","random","token"],"latest_commit_sha":null,"homepage":"","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/gowizzard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-12-30T20:42:26.000Z","updated_at":"2022-09-12T13:17:34.000Z","dependencies_parsed_at":"2024-10-23T01:52:28.496Z","dependency_job_id":null,"html_url":"https://github.com/gowizzard/goten","commit_stats":{"total_commits":49,"total_committers":3,"mean_commits":"16.333333333333332","dds":"0.24489795918367352","last_synced_commit":"510d967b7e124a34b0a3154ddd21cd0d8e9381fc"},"previous_names":["jojojojonas/goten","jojojojonas/token"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gowizzard%2Fgoten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gowizzard%2Fgoten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gowizzard%2Fgoten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gowizzard%2Fgoten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gowizzard","download_url":"https://codeload.github.com/gowizzard/goten/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246262492,"owners_count":20749170,"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":["generator","go","golang","password","random","token"],"created_at":"2024-10-22T19:14:12.976Z","updated_at":"2026-01-12T07:30:48.456Z","avatar_url":"https://github.com/gowizzard.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random token\n\n[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/gowizzard/goten.svg)](https://golang.org/) [![Go](https://github.com/gowizzard/goten/actions/workflows/go.yml/badge.svg)](https://github.com/gowizzard/goten/actions/workflows/go.yml) [![CodeQL](https://github.com/gowizzard/goten/actions/workflows/codeql.yml/badge.svg)](https://github.com/gowizzard/goten/actions/workflows/codeql.yml) [![CompVer](https://github.com/gowizzard/goten/actions/workflows/compver.yml/badge.svg)](https://github.com/gowizzard/goten/actions/workflows/compver.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/gowizzard/goten)](https://goreportcard.com/report/github.com/gowizzard/goten) [![Go Reference](https://pkg.go.dev/badge/github.com/gowizzard/goten.svg)](https://pkg.go.dev/github.com/gowizzard/goten) [![GitHub issues](https://img.shields.io/github/issues/gowizzard/goten)](https://github.com/gowizzard/goten/issues) [![GitHub forks](https://img.shields.io/github/forks/gowizzard/goten)](https://github.com/gowizzard/goten/network) [![GitHub stars](https://img.shields.io/github/stars/gowizzard/goten)](https://github.com/gowizzard/goten/stargazers) [![GitHub license](https://img.shields.io/github/license/gowizzard/goten)](https://github.com/gowizzard/goten/blob/master/LICENSE)  \n\nTo create a random token in Golang. Based on letters, numbers and symbols. Created with a non-negative pseudo-random number based on a random seed with is created with unix time number of nanoseconds.\n\n## Install\n\nFirst you have to install the package. You can do this as follows:\n\n```console\ngo get github.com/gowizzard/goten\n```\n\n## How to use\n\nHere is a small example how to create a random password without numbers and symbols. Only letters.\n\n```go\ntoken := goten.Generate(50, nil)\nfmt.Println(token)\n```\n\nAnd here is a small example how to create a random token with numbers and symbols.\n\n```go\noptions := goten.Options{\n    Uppercase:  true,\n    Numbers:    true,\n    Symbols:    true,\n}\n\ntoken := goten.Generate(50, \u0026options)\nfmt.Println(token)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgowizzard%2Fgoten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgowizzard%2Fgoten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgowizzard%2Fgoten/lists"}