Code Monkey home page Code Monkey logo

runescan's Introduction

runes: A gentle introduction to TDD in Go

In this repo you will find the step-by-step, test-driven development of the runes example: a command-line utility to find Unicode characters by name.

Each step in the development is documented explaining the Go language features used in the code.

Only a very basic knowdledge of Go is required to follow.

Our goal

By the end of this tutorial, we'll have a command-line utility which works like this:

$ runes face eyes
U+1F601	๐Ÿ˜	GRINNING FACE WITH SMILING EYES
U+1F604	๐Ÿ˜„	SMILING FACE WITH OPEN MOUTH AND SMILING EYES
U+1F606	๐Ÿ˜†	SMILING FACE WITH OPEN MOUTH AND TIGHTLY-CLOSED EYES
U+1F60A	๐Ÿ˜Š	SMILING FACE WITH SMILING EYES
U+1F60D	๐Ÿ˜	SMILING FACE WITH HEART-SHAPED EYES
U+1F619	๐Ÿ˜™	KISSING FACE WITH SMILING EYES
U+1F61A	๐Ÿ˜š	KISSING FACE WITH CLOSED EYES
U+1F61D	๐Ÿ˜	FACE WITH STUCK-OUT TONGUE AND TIGHTLY-CLOSED EYES
U+1F638	๐Ÿ˜ธ	GRINNING CAT FACE WITH SMILING EYES
U+1F63B	๐Ÿ˜ป	SMILING CAT FACE WITH HEART-SHAPED EYES
U+1F63D	๐Ÿ˜ฝ	KISSING CAT FACE WITH CLOSED EYES
U+1F644	๐Ÿ™„	FACE WITH ROLLING EYES

You give runes one or more words as arguments, and it displays a list of Unicode characters whose names contains all the words you provided.

Learn more in the project page (in Portuguese for now).

Credits

This tutorial is based in the charfinder example from chapter 18 of Fluent Python, by Luciano Ramalho. The Go version named runefinder, was started in the Garoa Gophers, study group by Afonso Coutinho (@afonso), Alexandre Souza (@alexandre), Andrews Medina (@andrewsmedina), Joรฃo "JC" Martins (@jcmartins), Luciano Ramalho (@ramalho), Marcio Ribeiro (@mmr), and Michael Howard.

runescan's People

Contributors

ramalho avatar tdruiva avatar dirtycoder avatar romulocollopy avatar ayr-ton avatar

Stargazers

Mad Colonel avatar Annie avatar Madhukar Mishra avatar Niraj Fonseka avatar Worthy L avatar Charles  Cianos avatar Ozifrankly Silva avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

ebkeel

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.