Bazel go library: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Overview=
=Overview=
This builds a Go library from a set of source files that are all part of the same package.
This builds a Go library from a set of source files that are all part of the same package.
=Attributes=
==<tt>name</tt>==
Required, a unique name for this target.
==<tt>srcs</tt>==
Optional.
==<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.

Revision as of 21:31, 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.

deps

Optional. List of Go libraries this package imports directly. These may be go_library rules or compatible rules with the GoLibrary provider.