fullname

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: BSD-3-Clause Imports: 8 Imported by: 2

README

fullname

This is both a Go package and a utility for trying to find the full name of the current user, on Linux.

Installing the utility

Requires Go 1.16 or later:

go install github.com/xyproto/fullname/cmd/fullname@latest

Example use

package main

import (
    "fmt"

    "github.com/xyproto/fullname"
)

func main() {
    fmt.Println(fullname.Get())
}

General info

  • Version: 1.1.0
  • License: MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() string

Get attempts to retrieve the full name of the current user by checking multiple sources.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳