Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source/extensions/dynamic_modules/abi/abi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Package abi contains the C ABI header for Envoy dynamic modules.
//
// This file exists so that `go mod vendor` includes this directory.
// Without a .go file, the Go toolchain skips this directory during
// vendoring, which causes the abi.h header (needed by the Go SDK's
// cgo include) to be missing from the vendor tree.
package abi
Comment on lines +1 to +7
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To align with Go's idiomatic practices, it is recommended to name files that solely contain package documentation and a package clause as doc.go. This convention makes the file's purpose—to ensure the directory is treated as a Go package—immediately clear to other developers.

Consider renaming abi.go to doc.go.

Loading