mortonnex
V2EX  ›  问与答

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

  •  
  •   mortonnex · Jun 9, 2019 via iPhone · 1969 views
    This topic created in 2569 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   ·   4720 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 05:37 · PVG 13:37 · LAX 22:37 · JFK 01:37
    ♥ Do have faith in what you're doing.