Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: third_party/go/src/golang.org/x/mobile/bind/testdata/interfaces.go

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package interfaces
6
7 type I interface {
8 Rand() int32
9 }
10
11 func Add3(r I) int32 {
12 return r.Rand() + r.Rand() + r.Rand()
13 }
14
15 // chosen by fair dice roll.
16 // guaranteed to be random.
17 type seven struct{}
18
19 func (seven) Rand() int32 { return 7 }
20
21 func Seven() I { return seven{} }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698