{"id":17877128,"url":"https://github.com/herrjulz/mingoak","last_synced_at":"2025-04-03T00:43:12.093Z","repository":{"id":69923588,"uuid":"102215010","full_name":"herrjulz/mingoak","owner":"herrjulz","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-16T10:08:53.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T15:14:05.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/herrjulz.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":"2017-09-02T18:13:45.000Z","updated_at":"2017-09-02T18:14:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"704a56ef-41f2-4df3-b9f1-f68db0b166f8","html_url":"https://github.com/herrjulz/mingoak","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrjulz%2Fmingoak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrjulz%2Fmingoak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrjulz%2Fmingoak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrjulz%2Fmingoak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/herrjulz","download_url":"https://codeload.github.com/herrjulz/mingoak/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246916743,"owners_count":20854511,"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":[],"created_at":"2024-10-28T11:45:24.005Z","updated_at":"2025-04-03T00:43:12.044Z","avatar_url":"https://github.com/herrjulz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MinGOak\n\nA lightweight, easy-to-use, in-memory file tree. \n\n--\u003e `mingoak` implements [os.FilePath](https://golang.org/pkg/os/#FileInfo)\n\n```\n$ go get github.com/JulzDiverse/mingoak\n```\n\n```\nimport github.com/JulzDiverse/mingoak  \n```\n\n## Usage\n\n```go\n\n  root := mingoak.MkRoot()\n\n  root.MkDirAll(\"path/to/dir/\")\n  root.WriteFile(\"path/to/dir/file\", []byte(\"test\"))\n\n  fileInfo, _ := root.ReadDir(\"path/to/dir\")\n  for _, v := fileInfo {\n     pintln(v.IsDir()) //true or false\n     println(v.Name())  //name of file/dir\n     println(v.ModTime()) //modification time\n     println(v.Size()) //file size\n  }\n\n  file, _ = root.ReadFile(\"path/to/dir/file\")\n  \n  //Walk also works:\n  files, _ := root.Walk(\"path\")\n  for _, v := files {\n     fmt.Prinln(v) //prints the file path\n  }\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherrjulz%2Fmingoak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherrjulz%2Fmingoak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherrjulz%2Fmingoak/lists"}