Skip to content

Unexport internal function AddInitrdRecord #502

@ishaanxgupta

Description

@ishaanxgupta

Internal functions should not be exported to keep the API surface clean and minimize the public contract of the package. AddInitrdRecord is an implementation detail that takes a *cpio.Writer, which should not be exposed to external callers.

Solution: Unexport the internal function AddInitrdRecord in pkg/unikontainers/initrd/initrd.go by renaming it to addInitrdRecord.
file: pkg/unikontainers/initrd/initrd.go

Metadata

Metadata

Assignees

Labels

CoreRelated to urunc's internalsenhancementNew feature or request

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions