github.com/v2fly/tools@v0.100.0/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) }