blob: 64d4a1bbb9bb5a590e5a1d66494ed5f9d03d30d8 [file] [log] [blame]
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{namespace go_library}
/***/
{template .soyweb}
{call buck.page}
{param title: 'go_library()' /}
{param navid: 'rule_go_library' /}
{param prettify: true /}
{param description}
A go_library() rule builds a Go linkable archive.
{/param}
{param content}
{call buck.rule}
{param status: 'UNFROZEN' /}
{param overview}
<p>
A go_library() rule builds a native library from the supplied set of Go source files
and dependencies.
</p>
<p>
{call go_common.supported_language_version /}
</p>
{/param}
{param args}
{call buck.name_arg /}
{call go_common.srcs_arg /}
{call go_common.package_name_arg /}
{call go_common.deps_arg /}
{call go_common.compiler_flags_arg /}
{call go_common.assembler_flags_arg /}
{call buck.tests_arg /}
{/param} // close args
{param examples}
{call go_common.more_examples /}
{literal}<pre class="prettyprint lang-py">
go_library(
name='greeting',
srcs=[
'greeting.go',
],
deps=[
':join',
],
)
</pre>{/literal}
{/param}
{/call} // close buck.rule
{/param}
{/call}
{/template}