[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5100":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},5100,"langchaingo","tmc\u002Flangchaingo","tmc","LangChain for Go, the easiest way to write LLM-based programs in Go","https:\u002F\u002Ftmc.github.io\u002Flangchaingo\u002F",null,"Go",9394,1107,77,239,0,5,32,170,23,40.13,"MIT License",false,"main",true,[27,28,29,30],"ai","go","golang","langchain","2026-06-12 02:01:08","> 🎉 **Join our new official Discord community!** Connect with other LangChain Go developers, get help and contribute: [Join Discord](https:\u002F\u002Fdiscord.gg\u002Ft9UbBQs2rG)\n\n# 🦜️🔗 LangChain Go\n\n[![go.dev reference](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fgo.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Ftmc\u002Flangchaingo)\n[![scorecard](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Ftmc\u002Flangchaingo)](https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002Ftmc\u002Flangchaingo)\n[![](https:\u002F\u002Fdcbadge.vercel.app\u002Fapi\u002Fserver\u002Ft9UbBQs2rG?compact=true&style=flat)](https:\u002F\u002Fdiscord.gg\u002Ft9UbBQs2rG)\n[![Open in Dev Containers](https:\u002F\u002Fimg.shields.io\u002Fstatic\u002Fv1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https:\u002F\u002Fvscode.dev\u002Fredirect?url=vscode:\u002F\u002Fms-vscode-remote.remote-containers\u002FcloneInVolume?url=https:\u002F\u002Fgithub.com\u002Ftmc\u002Flangchaingo)\n[\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fcodespaces\u002Fbadge.svg\" title=\"Open in Github Codespace\" width=\"150\" height=\"20\">](https:\u002F\u002Fcodespaces.new\u002Ftmc\u002Flangchaingo)\n\n⚡ Building applications with LLMs through composability, with Go! ⚡\n\n## 🤔 What is this?\n\nThis is the Go language implementation of [LangChain](https:\u002F\u002Fgithub.com\u002Flangchain-ai\u002Flangchain).\n\n## 📖 Documentation\n\n- [Documentation Site](https:\u002F\u002Ftmc.github.io\u002Flangchaingo\u002Fdocs\u002F)\n- [API Reference](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Ftmc\u002Flangchaingo)\n\n\n## 🎉 Examples\n\nSee [.\u002Fexamples](.\u002Fexamples) for example usage.\n\n```go\npackage main\n\nimport (\n  \"context\"\n  \"fmt\"\n  \"log\"\n\n  \"github.com\u002Ftmc\u002Flangchaingo\u002Fllms\"\n  \"github.com\u002Ftmc\u002Flangchaingo\u002Fllms\u002Fopenai\"\n)\n\nfunc main() {\n  ctx := context.Background()\n  llm, err := openai.New()\n  if err != nil {\n    log.Fatal(err)\n  }\n  prompt := \"What would be a good company name for a company that makes colorful socks?\"\n  completion, err := llms.GenerateFromSinglePrompt(ctx, llm, prompt)\n  if err != nil {\n    log.Fatal(err)\n  }\n  fmt.Println(completion)\n}\n```\n\n```shell\n$ go run .\nSocktastic\n```\n\n# Resources\n\nJoin the Discord server for support and discussions: [Join Discord](https:\u002F\u002Fdiscord.gg\u002F8bHGKzHBkM)\n\nHere are some links to blog posts and articles on using Langchain Go:\n\n- [Using Gemini models in Go with LangChainGo](https:\u002F\u002Feli.thegreenplace.net\u002F2024\u002Fusing-gemini-models-in-go-with-langchaingo\u002F) - Jan 2024\n- [Using Ollama with LangChainGo](https:\u002F\u002Feli.thegreenplace.net\u002F2023\u002Fusing-ollama-with-langchaingo\u002F) - Nov 2023\n- [Creating a simple ChatGPT clone with Go](https:\u002F\u002Fsausheong.com\u002Fcreating-a-simple-chatgpt-clone-with-go-c40b4bec9267?sk=53a2bcf4ce3b0cfae1a4c26897c0deb0) - Aug 2023\n- [Creating a ChatGPT Clone that Runs on Your Laptop with Go](https:\u002F\u002Fsausheong.com\u002Fcreating-a-chatgpt-clone-that-runs-on-your-laptop-with-go-bf9d41f1cf88?sk=05dc67b60fdac6effb1aca84dd2d654e) - Aug 2023\n\n\n# Contributors\n\nThere is a momentum for moving the development of langchaingo to a more community effort, if you are interested in being a maintainer or you are a contributor please join our [Discord](https:\u002F\u002Fdiscord.gg\u002F8bHGKzHBkM) and let us know.\n\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ftmc\u002Flangchaingo\u002Fgraphs\u002Fcontributors\">\n  \u003Cimg src=\"https:\u002F\u002Fcontrib.rocks\u002Fimage?repo=tmc\u002Flangchaingo\" \u002F>\n\u003C\u002Fa>\n","tmc\u002Flangchaingo 是一个用 Go 语言实现的 LangChain 库，旨在简化基于大语言模型（LLM）的应用程序开发。该项目支持通过组合不同组件来构建复杂的 LLM 应用，并提供了与 OpenAI 等流行 LLM 的集成。其核心功能包括生成文本、处理对话以及自定义提示等，同时具备良好的扩展性和易用性。适合需要利用 AI 技术进行自然语言处理但偏好使用 Go 语言的开发者或团队，在创建聊天机器人、内容生成器以及其他智能应用时可以发挥重要作用。",2,"2026-06-11 03:02:30","top_language"]