Bazel go library: Difference between revisions
Jump to navigation
Jump to search
(→srcs) |
|||
Line 9: | Line 9: | ||
Required, a unique name for this target. | Required, a unique name for this target. | ||
==<tt>srcs</tt>== | ==<tt>srcs</tt>== | ||
Optional. | Optional. The list of Go source files that are compiled to create the package. Only <code>.go</code> and <code>.s</code> files are permitted, unless the <code>cgo</code> attribute is set. | ||
==<tt>deps</tt>== | ==<tt>deps</tt>== | ||
Optional. List of Go libraries this package imports directly. These may be go_library rules or compatible rules with the GoLibrary provider. | Optional. List of Go libraries this package imports directly. These may be go_library rules or compatible rules with the GoLibrary provider. |
Revision as of 21:33, 16 July 2024
External
Internal
Overview
This builds a Go library from a set of source files that are all part of the same package.
Attributes
name
Required, a unique name for this target.
srcs
Optional. The list of Go source files that are compiled to create the package. Only .go
and .s
files are permitted, unless the cgo
attribute is set.
deps
Optional. List of Go libraries this package imports directly. These may be go_library rules or compatible rules with the GoLibrary provider.