mortonnex
V2EX  ›  问与答

go 中的接口型函数有什么好处?

  •  
  •   mortonnex · Jun 9, 2019 via iPhone · 2010 views
    This topic created in 2597 days ago, the information mentioned may be changed or developed.
    接口型函数也就是用函数实现接口,没搞懂用这个有什么好处?
    2 replies    2019-06-10 05:11:42 +08:00
    holyghost
        1
    holyghost  
       Jun 9, 2019
    测试
    iceheart
        2
    iceheart  
       Jun 10, 2019 via Android
    interface?
    主要作用就是解耦。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3943 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 05:08 · PVG 13:08 · LAX 22:08 · JFK 01:08
    ♥ Do have faith in what you're doing.