mortonnex
V2EX  ›  问与答

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

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