The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
HanMeiM

有没有比较优雅方法对 GORM 的 tx 进行传递

  •  
  •   HanMeiM · Nov 28, 2021 · 1432 views
    This topic created in 1807 days ago, the information mentioned may be changed or developed.
    屌大的各位 Golang 大佬们,目前我是通过将 tx 置为方法参数进行事务会话的传递。
    有没有比较优雅的方法呀?虚心求教
    superfatboy
    superfatboy
    Dec 3, 2021
    1
    我也想知道,哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   978 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:30 · PVG 06:30 · LAX 14:30 · JFK 17:30
    ♥ Do have faith in what you're doing.