{"id":46915822,"url":"https://github.com/deferpanic/loom","last_synced_at":"2026-03-11T02:31:12.617Z","repository":{"id":33179233,"uuid":"36820499","full_name":"deferpanic/loom","owner":"deferpanic","description":"Loom - A repository for Weave Files","archived":false,"fork":false,"pushed_at":"2015-06-12T18:37:03.000Z","size":1796,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-20T05:20:19.623Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deferpanic.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":"2015-06-03T17:52:12.000Z","updated_at":"2022-05-27T20:01:10.000Z","dependencies_parsed_at":"2022-08-17T21:45:14.178Z","dependency_job_id":null,"html_url":"https://github.com/deferpanic/loom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deferpanic/loom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deferpanic%2Floom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deferpanic%2Floom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deferpanic%2Floom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deferpanic%2Floom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deferpanic","download_url":"https://codeload.github.com/deferpanic/loom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deferpanic%2Floom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30367814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-03-11T02:31:12.357Z","updated_at":"2026-03-11T02:31:12.610Z","avatar_url":"https://github.com/deferpanic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loom\nLoom - A repository for Weave Files\n\nUsed by [GoWeave](https://github.com/deferpanic/goweave)\n\nA weave file contains aspects to weave into projects.\n\nThe weave file is subject to dramatic change right now. There is no\nformal specification as of yet.\n\n[Hello World](https://github.com/deferpanic/loom#examples)\n[Examples](https://github.com/deferpanic/loom#examples)\n\n\n##Hello World Weave File:##\n```\naspect {\n  imports (\n    \"fmt\"\n  )\n  pointcut: execute(*)\n  advice: {\n    before: {\n      fmt.Println(\"hi\")\n    }\n  }\n}\n```\n\n### Examples:\n\n[Loom](https://github.com/deferpanic/loom) has a listing of samples and\nuser-contributed weaves you might wish to look at or utilize.\n\nEssentially we support aspect files w/in a project. If code exists in\nyour project we should be able to provide aspect coverage for it.\n\nThere are a few design decisions that need to be made to support across\nprojects \u0026\u0026 into stdlib. Stdlib probably won't come until we move to IR.\n\nTo try things out first try running `go build`. Then try running `goweave`.\n\n#### Before Function Execution\n```go\naspect {\n  pointcut: execute(beforeBob())\n  advice: {\n    before: {\n      fmt.Println(\"before bob\")\n    }\n  }\n}\n```\n\n#### After Function Execution\n```\naspect {\n  pointcut: execute(afterAnnie())\n  advice: {\n    after: {\n      fmt.Println(\"after annie\")\n    }\n  }\n}\n```\n\n#### Before Main Execution\n```go\naspect {\n  pointcut: execute(main())\n  advice: {\n    before: {\n      fmt.Println(\"hello world\")\n    }\n  }\n}\n```\n\n#### Global Advice\n```go\naspect {\n  pointcut: execute(*)\n  advice: {\n    before: {\n      var globalCntr int = 0\n    }\n  }\n}\n```\n\n#### Before Function Call\n```go\naspect {\n  pointcut: call(beforeBob())\n  advice: {\n    before: {\n      fmt.Println(\"before bob\")\n    }\n  }\n}\n```\n\n#### After Function Call\n```\naspect {\n  pointcut: call(afterAnnie())\n  advice: {\n    after: {\n      fmt.Println(\"after annie\")\n    }\n  }\n}\n```\n\n### Around Function Call\n```\naspect {\n  pointcut: call(http.HandleFunc(d, s))\n  advice: {\n    around: {\n      http.HandleFunc(d, dps.HTTPHandlerFunc(s))\n    }\n  }\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeferpanic%2Floom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeferpanic%2Floom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeferpanic%2Floom/lists"}