cystem

package module
v0.0.0-...-66790cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 3 Imported by: 0

README

Cystem

Go binding for C int system(const char* cmd) command.

Install

  • You must have gcc to use this library.
  • go get -u github.com/aiocat/cystem

Usage

for string:

cystem.RunString("echo Hello World")

for []string:

cystem.RunStringSlice([]string{
    "echo",
    "Hello",
    "World",
})

License

Cystem is distributed under MIT license. for more information:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunString

func RunString(command string) int

Run string command and get c output

func RunStringSlice

func RunStringSlice(command []string) int

Run string slice commands and get c output

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL