This is an automated email from the ASF dual-hosted git repository.

laskoviymishka pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git


The following commit(s) were added to refs/heads/main by this push:
     new 5a847af69 chore: fix package docs that show the license header or 
nothing (#2694)
5a847af69 is described below

commit 5a847af6980254155ad2237da861645e0d721358
Author: Badal Prasad Singh <[email protected]>
AuthorDate: Wed Nov 25 13:35:11 2026 +0530

    chore: fix package docs that show the license header or nothing (#2694)
---
 .golangci.yml                          |  9 ++++++++-
 awsconfig/doc.go                       | 21 +++++++++++++++++++++
 catalog/glue/doc.go                    | 20 ++++++++++++++++++++
 catalog/hive/doc.go                    | 20 ++++++++++++++++++++
 catalog/rest/doc.go                    | 21 +++++++++++++++++++++
 catalog/sql/doc.go                     | 24 ++++++++++++++++++++++++
 config/doc.go                          | 22 ++++++++++++++++++++++
 doc.go                                 | 21 +++++++++++++++++++++
 puffin/blob_writer_compression.go      |  1 +
 puffin/blob_writer_compression_test.go |  1 +
 puffin/puffin.go                       |  2 +-
 puffin/puffin_writer.go                |  1 +
 table/doc.go                           | 22 ++++++++++++++++++++++
 table/dv/doc.go                        | 22 ++++++++++++++++++++++
 table/snapshot_manifest_stream.go      |  1 +
 table/snapshot_manifest_stream_test.go |  1 +
 view/doc.go                            | 22 ++++++++++++++++++++++
 17 files changed, 229 insertions(+), 2 deletions(-)

diff --git a/.golangci.yml b/.golangci.yml
index f64722289..9cc7289e4 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -40,10 +40,13 @@ linters:
       disable:
         - fieldalignment
         - shadow
+    staticcheck:
+      # golangci-lint's default list, with ST1000 (package docs) turned on.
+      checks: ["all", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022"]
   exclusions:
     generated: lax
+    # The "comments" preset is left out because it hides ST1000.
     presets:
-      - comments
       - common-false-positives
       - legacy
       - std-error-handling
@@ -51,6 +54,10 @@ linters:
       - linters:
           - errcheck
         path: _test\.go$
+      - linters:
+          - staticcheck
+        path: (^|/)internal/
+        text: ST1000
     paths:
       - third_party$
       - builtin$
diff --git a/awsconfig/doc.go b/awsconfig/doc.go
new file mode 100644
index 000000000..56cbc6646
--- /dev/null
+++ b/awsconfig/doc.go
@@ -0,0 +1,21 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package awsconfig carries an *aws.Config on a context. The S3 FileIO, the
+// DynamoDB catalog and the AWS KMS client use a config found there instead
+// of loading their own.
+package awsconfig
diff --git a/catalog/glue/doc.go b/catalog/glue/doc.go
new file mode 100644
index 000000000..b1914e471
--- /dev/null
+++ b/catalog/glue/doc.go
@@ -0,0 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package glue implements a catalog backed by the AWS Glue Data Catalog.
+// Import it to register the "glue" catalog type.
+package glue
diff --git a/catalog/hive/doc.go b/catalog/hive/doc.go
new file mode 100644
index 000000000..06d714829
--- /dev/null
+++ b/catalog/hive/doc.go
@@ -0,0 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package hive implements a catalog backed by a Hive Metastore, which it
+// reaches over Thrift. Import it to register the "hive" catalog type.
+package hive
diff --git a/catalog/rest/doc.go b/catalog/rest/doc.go
new file mode 100644
index 000000000..41ebd6582
--- /dev/null
+++ b/catalog/rest/doc.go
@@ -0,0 +1,21 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package rest implements a client for the Iceberg REST catalog API.
+// Import it to register the "rest" catalog type and the "http" and "https"
+// URI schemes.
+package rest
diff --git a/catalog/sql/doc.go b/catalog/sql/doc.go
new file mode 100644
index 000000000..d18ad31e9
--- /dev/null
+++ b/catalog/sql/doc.go
@@ -0,0 +1,24 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package sql implements a catalog that keeps table and view metadata
+// locations in the same database tables as Java's JdbcCatalog. Import it to
+// register the "sql" catalog type. That type needs the [DialectKey]
+// ("sql.dialect") property and a [DriverKey] ("sql.driver") property naming a
+// registered database/sql driver. A namespace with "." inside a level is 
stored
+// under a JSON key, which Java's JdbcCatalog reads as a different namespace.
+package sql
diff --git a/config/doc.go b/config/doc.go
new file mode 100644
index 000000000..e91d3ebfb
--- /dev/null
+++ b/config/doc.go
@@ -0,0 +1,22 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package config reads the iceberg-go configuration file, .iceberg-go.yaml.
+// [EnvConfig] holds the settings that catalog.Load and table writes use,
+// read at startup from $GOICEBERG_HOME or else the home directory.
+// [LoadConfig] and [ParseConfig] read and decode a file on demand.
+package config
diff --git a/doc.go b/doc.go
new file mode 100644
index 000000000..1d596ffe3
--- /dev/null
+++ b/doc.go
@@ -0,0 +1,21 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package iceberg holds the core types of the Go implementation of Apache
+// Iceberg: schemas and data types, literals and expressions, partition specs
+// and transforms, and manifests. The catalog and table packages build on it.
+package iceberg
diff --git a/puffin/blob_writer_compression.go 
b/puffin/blob_writer_compression.go
index 4203f64a6..67f03bc77 100644
--- a/puffin/blob_writer_compression.go
+++ b/puffin/blob_writer_compression.go
@@ -14,6 +14,7 @@
 // KIND, either express or implied.  See the License for the
 // specific language governing permissions and limitations
 // under the License.
+
 package puffin
 
 import (
diff --git a/puffin/blob_writer_compression_test.go 
b/puffin/blob_writer_compression_test.go
index 02c49c216..6e35a78da 100644
--- a/puffin/blob_writer_compression_test.go
+++ b/puffin/blob_writer_compression_test.go
@@ -14,6 +14,7 @@
 // KIND, either express or implied.  See the License for the
 // specific language governing permissions and limitations
 // under the License.
+
 package puffin_test
 
 import (
diff --git a/puffin/puffin.go b/puffin/puffin.go
index 873544605..d1cff4e7f 100644
--- a/puffin/puffin.go
+++ b/puffin/puffin.go
@@ -14,7 +14,7 @@
 // KIND, either express or implied.  See the License for the
 // specific language governing permissions and limitations
 // under the License.
-//
+
 // Package puffin provides reading and writing of Puffin files.
 //
 // Puffin is a file format designed to store statistics and indexes
diff --git a/puffin/puffin_writer.go b/puffin/puffin_writer.go
index a639b8465..2785188b1 100644
--- a/puffin/puffin_writer.go
+++ b/puffin/puffin_writer.go
@@ -14,6 +14,7 @@
 // KIND, either express or implied.  See the License for the
 // specific language governing permissions and limitations
 // under the License.
+
 package puffin
 
 import (
diff --git a/table/doc.go b/table/doc.go
new file mode 100644
index 000000000..ea1b1d060
--- /dev/null
+++ b/table/doc.go
@@ -0,0 +1,22 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package table reads and writes Iceberg tables. [Table.Scan] returns a
+// [Scan] that reads rows as Arrow record batches, and [Table.NewTransaction]
+// returns a [Transaction] that stages changes, such as appends, deletes and
+// schema updates, and commits them through the table's catalog.
+package table
diff --git a/table/dv/doc.go b/table/dv/doc.go
new file mode 100644
index 000000000..2c39c6719
--- /dev/null
+++ b/table/dv/doc.go
@@ -0,0 +1,22 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package dv reads and writes deletion vectors, which replace position delete
+// files from format version 3. A deletion vector is a bitmap of the deleted
+// row positions in one data file, stored as a deletion-vector-v1 blob in a
+// Puffin file. [DVWriter] writes them, and [ReadDV] and [ReadDVs] read them.
+package dv
diff --git a/table/snapshot_manifest_stream.go 
b/table/snapshot_manifest_stream.go
index 6041b9421..edbb18dce 100644
--- a/table/snapshot_manifest_stream.go
+++ b/table/snapshot_manifest_stream.go
@@ -14,6 +14,7 @@
 // KIND, either express or implied.  See the License for the
 // specific language governing permissions and limitations
 // under the License.
+
 package table
 
 import (
diff --git a/table/snapshot_manifest_stream_test.go 
b/table/snapshot_manifest_stream_test.go
index a6c5a7037..2b447548f 100644
--- a/table/snapshot_manifest_stream_test.go
+++ b/table/snapshot_manifest_stream_test.go
@@ -14,6 +14,7 @@
 // KIND, either express or implied.  See the License for the
 // specific language governing permissions and limitations
 // under the License.
+
 package table
 
 import (
diff --git a/view/doc.go b/view/doc.go
new file mode 100644
index 000000000..b87d0bb97
--- /dev/null
+++ b/view/doc.go
@@ -0,0 +1,22 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you 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.
+
+// Package view implements Iceberg views. A view's [Metadata] holds versions
+// of its query as SQL representations, [MetadataBuilder] applies changes to
+// it, and catalogs commit those changes as [Update] values checked by
+// [Requirement] values.
+package view

Reply via email to