<p dir="auto">by <strong>mschlimp</strong>:</p>
<pre class="notranslate">Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull", "hg update default", rebuild, and
retry
what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?

1.
type ViewStruct struct {
    Func struct{Html HtmlSnippet}
    Data map[string] interface{}
}


type HtmlSnippet func(arg string) string

func print(s string) string {
  return s
}

func (s HtmlSnippet) Stylesheet_link_tag(arg string) string {
  return s("&lt;link type='text/css' rel='stylesheet' media='all' href='/stylesheets/"+arg+".css'&gt;")
}


2.

Inside of the template I use the following code to get acess to the function:

...
{{.Func.Html.Stylesheet_link_tag "/stylesheets/jquery-ui-1.8.9.custom.css" }}
...


What is the expected output?

&lt;link type='text/css' rel='stylesheet' media='all'
href='/stylesheets/stylesheets/jquery-ui-1.8.9.custom.css.css'&gt;

What do you see instead?

template: parent:9: wrong number of args for Html: want 1 got 0I


Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
MacOS: 11.2.0 Darwin Kernel Version 11.2.0

Which revision are you using?  (hg identify)
1f5208fb59ff tip</pre>
<pre class="notranslate">This CL broke the linux-arm-luitvd builder:

cgo: adjust return value location to account for stack copies.
<a href="https://code.google.com/p/go/source/detail?r=b4a82354d4003e8d8df025500916c6a99b5a7598" rel="nofollow">https://code.google.com/p/go/source/detail?r=b4a82354d4003e8d8df025500916c6a99b5a7598</a>

with:

...
# ../misc/cgo/test
--- FAIL: Test8694 (0.00s)
    issue8694.go:23: C.complexFloatSquared((2+3i)) = (0+0i), want (-5+12i)
FAIL
exit status 1
FAIL    _/tmp/gobuilder/linux-arm-luitvd-8f36a32a9d03/go/misc/cgo/test  3.989s
Build complete, duration 55m37.194876138s. Result: error: exit status 1
....


I don't know the hardware details of the luitvd. It's not listed at
<a href="https://code.google.com/p/go-wiki/wiki/DashboardBuilders" rel="nofollow">https://code.google.com/p/go-wiki/wiki/DashboardBuilders</a></pre>