Code Monkey home page Code Monkey logo

toolshed's Introduction

Toolshed

A collection of random tools and libs made by yours trully.

I'll try to keep whatever is shoveled here documented, no pinky-promise though.

Installation

Since this will probably interest people starting to code, how to install:

go get github.com/Pomlon/Toolshed

Contents:

Toolshed.Frmt is a Python-like string formatter. Usage:

foo := Toolshed.Frmt("This {} is {} a {} disaster.").F("thing", "for real", "goddamn")

out: This thing is for real a goddamn disaster.

Toolshed.Abs is a function that returns and aboslute value (for ints!) I threw this in here because the one in math is for floats.

Abs(-8)

returns 8

Toolshed.ErrPanic and Toolshed.ErrPrint are simple error handlers, ARE YOU TIRED OF WRITING:

if err != nil {
  fmt.Print("OMG!")
  panic(e)
  }

ALL THE TIME? Pomlon got your back!

Pomlog

Yet another logger, cause I can. This is an absolute work in progress and nobody in their right mind should use it for anything. Except maybe research. Well then off you go, read the source. Won't take long!

toolshed's People

Contributors

pomlon avatar reddata avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.