ggstd 0.1.0

Partial implementation of Go standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2023 The rust-ggstd authors.
// SPDX-License-Identifier: 0BSD

use ggstd::os::TempDir;
use ggstd::os::TempFile;

fn main() {
    let tf = TempFile::new("ggstd-*.txt").unwrap();
    println!("{}", tf.path.to_string_lossy());

    let td = TempDir::new("ggstd-").unwrap();
    println!("{}", td.path.to_string_lossy());

    let tf = TempFile::new_in_dir(&td.path, "ggstd-*.txt").unwrap();
    println!("{}", tf.path.to_string_lossy());
}