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

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

  •  
  •   HanMeiM · Nov 28, 2021 · 1473 views
    This topic created in 1829 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   ·   2431 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:48 · PVG 19:48 · LAX 03:48 · JFK 06:48
    ♥ Do have faith in what you're doing.