-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample_test.go
More file actions
26 lines (20 loc) · 883 Bytes
/
example_test.go
File metadata and controls
26 lines (20 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package npck
// ////////////////////////////////////////////////////////////////////////////////// //
// //
// Copyright (c) 2026 ESSENTIAL KAOS //
// Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> //
// //
// ////////////////////////////////////////////////////////////////////////////////// //
import (
"fmt"
)
// ////////////////////////////////////////////////////////////////////////////////// //
func ExampleUnpack() {
file := "file.tzg"
err := Unpack(file, "/home/bob/data")
if err != nil {
fmt.Printf("Error: Can't unpack %s: %v\n", file, err)
return
}
fmt.Printf("File %s successfully unpacked!\n", file)
}