github.com/primecitizens/pcz/std@v0.2.1/core/sys/argv_utf8.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  //go:build !noos && (darwin || linux || freebsd || netbsd || openbsd || solaris || dragonfly)
     5  
     6  package sys
     7  
     8  import (
     9  	_ "unsafe" // for go:linkname
    10  
    11  	stdstring "github.com/primecitizens/pcz/std/builtin/string"
    12  )
    13  
    14  var (
    15  	//go:linkname _args rt0.args
    16  	_args []*byte
    17  )
    18  
    19  func ntharg(i int) string {
    20  	return stdstring.FromByteArray(_args[i])
    21  }