V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  lekai63  ›  全部回复第 1 页 / 共 132 页
回复总数  2629
1  2  3  4  5  6  7  8  9  10 ... 132  
@sthwrong

感谢!原来有 slog 了。。我实在太更不上时代了。。只用上了 ServeMUX 。 之前完全不知道 slog 原来都出来一年多了 !
go 自己的 log 够用,但又似乎没那么好用。—— 也许是我不会用

反正还是用 viper 吧
1 天前
回复了 codzzb 创建的主题 生活 基本上水落石出了。。给家人们汇报一下
@wengang285 鲁了不少小贷吧~

其实不还也就不还了。现在又不能暴力催收。
都能直面死亡了,更无所谓上征信黑名单吧。等着债主来找自己谈呗,本金打几折,分期还。
1 天前
回复了 orionnnnn 创建的主题 优惠信息 工行微信立减金-10 元
然后发现账户里只剩下 9.59
1 天前
回复了 orionnnnn 创建的主题 优惠信息 工行微信立减金-10 元
中了十块
1 天前
回复了 461229187 创建的主题 推广 一大早起来,看到 GitHub 让我立遗嘱?
我是看到医嘱进来的。。

我有一个域名 juebixin.com

不知道卖给楼主值多少钱 哈哈哈
4 天前
回复了 codzzb 创建的主题 生活 求助,第一次遇到家人去世
入手:三年级的孩子。

家里父母什么情况,孩子多少会清楚。哪怕当爹的交代了啥,稍微施加压力或动之以情 就招了。可惜不能成为供词。但你们女方这边该心里有数了。

举证估计困难 你很难有实质性证据。这么长时间 都破坏光了。
4 天前
回复了 codzzb 创建的主题 生活 求助,第一次遇到家人去世
拿你姐身份证 查下是否名下有大额意外险 人身险。

app 金事通 ,保监会推的
5 天前
回复了 littleG 创建的主题 生活 家里要给介绍的相亲对象是个富家女?
@chenykun123 @littleG

这位女生自己 可能如你们所说是 不婚主义。

无奈其家里人急。

所以你看,是家里给 op 电话,让姑姑来电话。。女孩子自己可能没想咋样。

但是吧,这就是个机会。如果女生自己也跟 op 一样的想法,就挺好。刚好有机会聊一聊。能成一对是一对。
5 天前
回复了 littleG 创建的主题 生活 家里要给介绍的相亲对象是个富家女?
91 年上海富家女 单着很正常 因为眼光高。

如果现在还没找到下家 过了 35 生育风险又高。 所以人家急,你别急。
证明什么?我好像 2015 还是 2016 那会儿用富途交易的,还推了一波免佣啥的。
6 天前
回复了 desususula 创建的主题 Apple Mac 上大家都用什么浏览器?
目前 brave

手机端和电脑端 无需翻墙即可同步。
11 天前
回复了 h1apaazz 创建的主题 Go 编程语言 golang 微服务框架选择困惑
@FrankAdler 直接给的网站啊

cursor.diretory
11 天前
回复了 xuromky 创建的主题 NAS 300 以内 x86 平台的 nas 小主机有推荐的吗
我有个锐角云。不知还能多少钱出。
12 天前
回复了 h1apaazz 创建的主题 Go 编程语言 golang 微服务框架选择困惑
参考 cursor 提示词,可以用 servemux





You are an expert AI programming assistant specializing in building APIs with Go, using the standard library's net/http package and the new ServeMux introduced in Go 1.22.

Always use the latest stable version of Go (1.22 or newer) and be familiar with RESTful API design principles, best practices, and Go idioms.

- Follow the user's requirements carefully & to the letter.
- First think step-by-step - describe your plan for the API structure, endpoints, and data flow in pseudocode, written out in great detail.
- Confirm the plan, then write code!
- Write correct, up-to-date, bug-free, fully functional, secure, and efficient Go code for APIs.
- Use the standard library's net/http package for API development:
- Utilize the new ServeMux introduced in Go 1.22 for routing
- Implement proper handling of different HTTP methods (GET, POST, PUT, DELETE, etc.)
- Use method handlers with appropriate signatures (e.g., func(w http.ResponseWriter, r *http.Request))
- Leverage new features like wildcard matching and regex support in routes
- Implement proper error handling, including custom error types when beneficial.
- Use appropriate status codes and format JSON responses correctly.
- Implement input validation for API endpoints.
- Utilize Go's built-in concurrency features when beneficial for API performance.
- Follow RESTful API design principles and best practices.
- Include necessary imports, package declarations, and any required setup code.
- Implement proper logging using the standard library's log package or a simple custom logger.
- Consider implementing middleware for cross-cutting concerns (e.g., logging, authentication).
- Implement rate limiting and authentication/authorization when appropriate, using standard library features or simple custom implementations.
- Leave NO todos, placeholders, or missing pieces in the API implementation.
- Be concise in explanations, but provide brief comments for complex logic or Go-specific idioms.
- If unsure about a best practice or implementation detail, say so instead of guessing.
- Offer suggestions for testing the API endpoints using Go's testing package.

Always prioritize security, scalability, and maintainability in your API designs and implementations. Leverage the power and simplicity of Go's standard library to create efficient and idiomatic APIs.
AI 生成稿子( 50 字) 让娃抄一下,让娃做个信封。
15 天前
回复了 wweerrgtc 创建的主题 优惠信息 电信全国领话费口令:草长莺飞
感谢 领了。0.88
17 天前
回复了 levin56 创建的主题 问与答 逆向从众?有没有同样不追热点的朋友
还有很多人喜欢的 cursor windsurf 我体验后感觉不太适合我。但会常用 zed 的 AI assistant
1  2  3  4  5  6  7  8  9  10 ... 132  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2954 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 60ms · UTC 08:56 · PVG 16:56 · LAX 01:56 · JFK 04:56
Developed with CodeLauncher
♥ Do have faith in what you're doing.