mortonnex
V2EX  ›  问与答

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

  •  
  •   mortonnex · Jun 9, 2019 via iPhone · 2032 views
    This topic created in 2615 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   ·   3047 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 14:25 · PVG 22:25 · LAX 07:25 · JFK 10:25
    ♥ Do have faith in what you're doing.