File: fuel.go

package info (click to toggle)
golang-go.uber-mock 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,176 kB
  • sloc: sh: 37; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package fuel

type Fuel interface {
	EnergyCapacity() int
	Diesel | Gasoline
}

type Diesel struct{}

func (Diesel) EnergyCapacity() int {
	return 48
}

type Gasoline struct{}

func (Gasoline) EnergyCapacity() int {
	return 46
}