From 6f5e22e764283262ae8c6519bb030766db0fd35b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Apr 2025 09:58:02 +0800 Subject: Add more documentation comments --- forged/internal/misc/deploy.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'forged/internal/misc/deploy.go') diff --git a/forged/internal/misc/deploy.go b/forged/internal/misc/deploy.go index 0f24f49..3ee5f92 100644 --- a/forged/internal/misc/deploy.go +++ b/forged/internal/misc/deploy.go @@ -9,6 +9,8 @@ import ( "os" ) +// DeployBinary copies the contents of a binary file to the target destination path. +// The destination file is created with executable permissions. func DeployBinary(src fs.File, dst string) (err error) { var dstFile *os.File if dstFile, err = os.OpenFile(dst, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o755); err != nil { -- cgit v1.2.3