1,601 matches across 4 files for func main lang:HTML lang:HTML
snippet_mode: auto · sorted by relevance
294<p class="rule">
295If a package <code>p</code> imports package <code>q</code>, the completion of
296▶<code>q</code>'s <code>init</code> functions happens before the start of any of <code>p</code>'s.
297</p>
298
· · ·
299<p class="rule">
300▶The completion of all <code>init</code> functions is synchronized before
301the start of the function <code>main.main</code>.
302</p>
· · ·
301▶the start of the function <code>main.main</code>.
302</p>
303
· · ·
316var a string
317
318▶func f() {
319 print(a)
320}
· · ·
321
322▶func hello() {
323 a = "hello, world"
324 go f()
+ 38 more matches in this file
52<pre>
53$ cat x.go
54▶package main
55
56func main() {
· · ·
56▶func main() {
57 println(3)
58}
· · ·
59$ GOOS=linux GOARCH=amd64 go tool compile -S x.go # or: go build -gcflags -S x.go
60▶"".main STEXT size=74 args=0x0 locals=0x10
61 0x0000 00000 (x.go:3) TEXT "".main(SB), $16-0
62 0x0000 00000 (x.go:3) MOVQ (TLS), CX
· · ·
61▶ 0x0000 00000 (x.go:3) TEXT "".main(SB), $16-0
62 0x0000 00000 (x.go:3) MOVQ (TLS), CX
63 0x0009 00009 (x.go:3) CMPQ SP, 16(CX)
· · ·
66 0x0013 00019 (x.go:3) MOVQ BP, 8(SP)
67 0x0018 00024 (x.go:3) LEAQ 8(SP), BP
68▶ 0x001d 00029 (x.go:3) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
69 0x001d 00029 (x.go:3) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
70 0x001d 00029 (x.go:3) FUNCDATA $2, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
+ 51 more matches in this file
259</p>
260<pre class="grammar">
261▶break default func interface select
262case defer go map struct
263chan else goto package switch
· · ·
653a <a href="#Constant_expressions">constant expression</a>,
654a <a href="#Conversions">conversion</a> with a result that is a constant, or
655▶the result value of some built-in functions such as
656<code>min</code> or <code>max</code> applied to constant arguments,
657<code>unsafe.Sizeof</code> applied to <a href="#Package_unsafe">certain values</a>,
· · ·
749<p>
750A <a href="#Variable_declarations">variable declaration</a>
751▶or, for function parameters and results, the signature
752of a <a href="#Function_declarations">function declaration</a>
753or <a href="#Function_literals">function literal</a> reserves
· · ·
752▶of a <a href="#Function_declarations">function declaration</a>
753or <a href="#Function_literals">function literal</a> reserves
754storage for a named variable.
· · ·
753▶or <a href="#Function_literals">function literal</a> reserves
754storage for a named variable.
755
+ 462 more matches in this file
2452 transition-property: opacity, height, padding, margin;
2453 transition-duration: .2s;
2454▶ transition-timing-function: ease-out;
2455 }
2456 .hidden {
· · ·
3703'use strict';if(!window.CustomElements||window.CustomElements.hasNative){if(window.Polymer){throw new Error('Cannot proceed. Polymer already present.');}
3704window.Polymer={};window.Polymer.dom='shadow';}
3705▶(function(){function resolve(){document.body.removeAttribute('unresolved');}
3706if(window.WebComponents){addEventListener('WebComponentsReady',resolve);}else{if(document.readyState==='interactive'||document.readyState==='complete'){resolve();}else{addEventListener('DOMContentLoaded',resolve);}}}());window.Polymer={Settings:function(){var settings=window.Polymer||{};if(!settings.noUrlSettings){var parts=location.search.slice(1).split('&');for(var i=0,o;i<parts.length&&(o=parts[i]);i++){o=o.split('=');o[0]&&(settings[o[0]]=o[1]||true);}}
3707settings.wantShadow=settings.dom==='shadow';settings.hasShadow=Boolean(Element.prototype.createShadowRoot);settings.nativeShadow=settings.hasShadow&&!window.ShadowDOMPolyfill;settings.useShadow=settings.wantShadow&&settings.hasShadow;settings.hasNativeImports=Boolean('import'in document.createElement('link'));settings.useNativeImports=settings.hasNativeImports;settings.useNativeCustomElements=!window.CustomElements||window.CustomElements.useNative;settings.useNativeShadow=settings.useShadow&&settings.nativeShadow;settings.usePolyfillProto=!settings.useNativeCustomElements&&!Object.__proto__;settings.hasNativeCSSProperties=!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');settings.useNativeCSSProperties=settings.hasNativeCSSProperties&&settings.lazyRegister&&settings.useNativeCSSProperties;settings.isIE=navigator.userAgent.match('Trident');settings.passiveTouchGestures=settings.passiveTouchGestures||false;return settings;}()};(function(){var userPolymer=window.Polymer;window.Polymer=function(prototype){if(typeof prototype==='function'){prototype=prototype.prototype;}
· · ·
3706▶if(window.WebComponents){addEventListener('WebComponentsReady',resolve);}else{if(document.readyState==='interactive'||document.readyState==='complete'){resolve();}else{addEventListener('DOMContentLoaded',resolve);}}}());window.Polymer={Settings:function(){var settings=window.Polymer||{};if(!settings.noUrlSettings){var parts=location.search.slice(1).split('&');for(var i=0,o;i<parts.length&&(o=parts[i]);i++){o=o.split('=');o[0]&&(settings[o[0]]=o[1]||true);}}
3707settings.wantShadow=settings.dom==='shadow';settings.hasShadow=Boolean(Element.prototype.createShadowRoot);settings.nativeShadow=settings.hasShadow&&!window.ShadowDOMPolyfill;settings.useShadow=settings.wantShadow&&settings.hasShadow;settings.hasNativeImports=Boolean('import'in document.createElement('link'));settings.useNativeImports=settings.hasNativeImports;settings.useNativeCustomElements=!window.CustomElements||window.CustomElements.useNative;settings.useNativeShadow=settings.useShadow&&settings.nativeShadow;settings.usePolyfillProto=!settings.useNativeCustomElements&&!Object.__proto__;settings.hasNativeCSSProperties=!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');settings.useNativeCSSProperties=settings.hasNativeCSSProperties&&settings.lazyRegister&&settings.useNativeCSSProperties;settings.isIE=navigator.userAgent.match('Trident');settings.passiveTouchGestures=settings.passiveTouchGestures||false;return settings;}()};(function(){var userPolymer=window.Polymer;window.Polymer=function(prototype){if(typeof prototype==='function'){prototype=prototype.prototype;}
3708if(!prototype){prototype={};}
· · ·
3707▶settings.wantShadow=settings.dom==='shadow';settings.hasShadow=Boolean(Element.prototype.createShadowRoot);settings.nativeShadow=settings.hasShadow&&!window.ShadowDOMPolyfill;settings.useShadow=settings.wantShadow&&settings.hasShadow;settings.hasNativeImports=Boolean('import'in document.createElement('link'));settings.useNativeImports=settings.hasNativeImports;settings.useNativeCustomElements=!window.CustomElements||window.CustomElements.useNative;settings.useNativeShadow=settings.useShadow&&settings.nativeShadow;settings.usePolyfillProto=!settings.useNativeCustomElements&&!Object.__proto__;settings.hasNativeCSSProperties=!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');settings.useNativeCSSProperties=settings.hasNativeCSSProperties&&settings.lazyRegister&&settings.useNativeCSSProperties;settings.isIE=navigator.userAgent.match('Trident');settings.passiveTouchGestures=settings.passiveTouchGestures||false;return settings;}()};(function(){var userPolymer=window.Polymer;window.Polymer=function(prototype){if(typeof prototype==='function'){prototype=prototype.prototype;}
3708if(!prototype){prototype={};}
3709prototype=desugar(prototype);var customCtor=prototype===prototype.constructor.prototype?prototype.constructor:null;var options={prototype:prototype};if(prototype.extends){options.extends=prototype.extends;}
· · ·
3710▶Polymer.telemetry._registrate(prototype);var ctor=document.registerElement(prototype.is,options);return customCtor||ctor;};var desugar=function(prototype){var base=Polymer.Base;if(prototype.extends){base=Polymer.Base._getExtendedPrototype(prototype.extends);}
3711prototype=Polymer.Base.chainObject(prototype,base);prototype.registerCallback();return prototype;};if(userPolymer){for(var i in userPolymer){Polymer[i]=userPolymer[i];}}
3712Polymer.Class=function(prototype){if(!prototype.factoryImpl){prototype.factoryImpl=function(){};}
+ 1,030 more matches in this file