Golang эквивалент Python NotImplementedExceptionPython

Программы на Python
Гость
Golang эквивалент Python NotImplementedException

Сообщение Гость »

Есть ли в Golang эквивалент возникновению исключения NotImplementedException в Python, когда вы определяете интерфейс с методами, которые пока не хотите реализовывать? Это идиоматический Голанг?

Например:

type MyInterface interface {
Method1() bool
Method2() bool
}

// Implement this interface
type Thing struct {}
func (t *Thing) Method1() bool {
return true
}

func (t *Thing) Method2() bool {
// I don't want to implement this yet
}


Подробнее здесь: https://stackoverflow.com/questions/411 ... dexception

Вернуться в «Python»