github.com/hikaru7719/go@v0.0.0-20181025140707-c8b2ac68906a/test/fixedbugs/bug506.dir/main.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 main 6 7 import ( 8 "fmt" 9 10 "./a" 11 ) 12 13 var v = a.S{} 14 15 func main() { 16 want := "{{ 0}}" 17 if got := fmt.Sprint(v.F); got != want { 18 panic(got) 19 } 20 }