Golang的繼承可以通過結構體裏面包含匿名結構體實現,具體,比如iPhone這個結構體要繼承法phone這個結構體可以這樣寫:
package main
import "fmt"
type phone struct {
design_place string
production_place string
}
type iphone struct {
bra
另外,這倆問題是我在mobx中使用ES7裝飾器語法用到的,用普通的ES6語法是不會碰到這樣的問題,嫌麻煩也可以不用裝飾器語法,奈何我對這種看上去像Spring註釋的語法垂涎已久。
bug1
Experimental support for decorators is a feature that is subject to change in a future release. Set the