github.com/AndrienkoAleksandr/go@v0.0.19/src/go/internal/gccgoimporter/testdata/nointerface.go (about) 1 // Copyright 2018 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 nointerface 6 7 type I int 8 9 //go:nointerface 10 func (p *I) Get() int { return int(*p) } 11 12 func (p *I) Set(v int) { *p = I(v) }