passwd

command
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: GPL-2.0 Imports: 9 Imported by: 0

README

passwd

This example demonstrates running a user-supplied script, along with a custom function.

Usage

Compile via go build ., then launch the program with one of the script-files as the single argument:

./passwd and.txt
Loading and.txt
**********************************************************************
User nobody gave result true

That showed that that the script returned true for the user nobody, matching the condition:

if ( ( Username == "nobody" ) && ( Uid > "1000" ) ) {

Notes

The second test there looks odd, but that is because Uid is a string-field, rather than a numeric one.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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