Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

STDutil

Minimal wrapper around some STD actions in Go... To make them quicker than ever!

Example:

package main

import (
    "fmt"
    "github.com/jD91mZM2/stdutil"
    "regexp"
    "strings"
)

func main() {
    stdutil.ShouldTrace = true

    fmt.Print("Name: ")
    name := stdutil.MustScanLower()

    if ok, _ := regexp.MatchString("[0-9]+", name); ok {
        stdutil.PrintErr("Name can't contain numbers!!!", nil)
        return
    }

    fmt.Println("Hello, " + strings.Title(name))
}

Also check out its GoDocs!

Install

Should be as easy as

go get github.com/jD91mZM2/stdutil

Have fun!

About

How Go's STD should've been... In minimal amounts of code

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages