command
Version:
v0.0.0-...-2926792
Opens a new window with list of versions in this module.
Published: Jul 29, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
*
嵌入interface
Go里面真正吸引人的是它内置的逻辑语法,就像我们在学习Struct时学习的匿名字段,多么的优雅啊,
那么相同的逻辑引入到interface里面,那不是更加完美了。
如果一个interface1作为interface2的一个嵌入字段,那么interface2隐式的包含了interface1里面的method。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.