GithubHelp home page GithubHelp logo

evilsocket / islazy Goto Github PK

View Code? Open in Web Editor NEW
156.0 156.0 25.0 111 KB

A Go library containing a set of opinionated packages, objects, helpers and functions implemented with the KISS principle in mind.

License: Other

Go 100.00%

islazy's Introduction

islazy's People

Contributors

alessiodallapiazza avatar bonedaddy avatar evilsocket avatar ferrim avatar matrix86 avatar ohpe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

islazy's Issues

Feature request: Formatted logging

I'm seeing myself doing the following quite often:

log.Debug(fmt.Sprintf("Sending event %s to event chan", event))

Having something like log.Debugf (same for other logging functions) may be nice in such cases.

GPL-3 or GPL-3+

Hi Simone Margaritelli,

I would like to know if islazy is licensed under the terms of the GPL 3 license, strictly version 3, or can we use version 3 or any later version?

My doubt is due to the README.md displaying the message "This library was made with hearts by Simone Margaritelli and it's released under the GPL 3 license" and in the LICENSE.md I find "GPL version 3 or later".
When you quote GPL-3, is it strictly? or do you allow any later version?

Could you please clarify whether the correct license is GPL-3 or GPL-3+ (any later version) by changing either the README.md or the LICENSE.md file?

Regards,
Francisco Vilmar Cardoso Ruviaro

tui.Table alignment bug

Running tui.Table with a constant column in a loop screws up the column formating a bit more in each iteration:

package main

import (
	"bytes"
	"fmt"
	"time"

	"github.com/evilsocket/islazy/log"
	"github.com/evilsocket/islazy/tui"
)

func main() {
	columns := []string{
		"A",
		"B",
		"C",
		"D",
	}

	ticker := time.NewTicker(1 * time.Second)

	for range ticker.C {
		buf := new(bytes.Buffer)

		rows := [][]string{
			{fmt.Sprintf("%d", 0), fmt.Sprintf("%d", 1), fmt.Sprintf("%d", 2), fmt.Sprintf("%d", 3)},
		}
		tui.Table(buf, columns, rows)
		log.Info("%s", buf.String())
	}
}
$ go run demo.go                                                                                                                                                                              8.3s < Mi 13 Feb 2019 22:43:21 CET
2019-02-13 22:43:30 inf 
+---+---+---+---+
| A | B | C | D |
+---+---+---+---+
| 0 | 1 | 2 | 3 |
+---+---+---+---+

2019-02-13 22:43:31 inf 
+----+----+----+----+
|  A |  B |  C |  D |
+----+----+----+----+
| 0  | 1  | 2  | 3  |
+----+----+----+----+

2019-02-13 22:43:32 inf 
+-----+-----+-----+-----+
|   A |   B |   C |   D |
+-----+-----+-----+-----+
| 0   | 1   | 2   | 3   |
+-----+-----+-----+-----+

2019-02-13 22:43:33 inf 
+------+------+------+------+
|    A |    B |    C |    D |
+------+------+------+------+
| 0    | 1    | 2    | 3    |
+------+------+------+------+

2019-02-13 22:43:34 inf 
+-------+-------+-------+-------+
|     A |     B |     C |     D |
+-------+-------+-------+-------+
| 0     | 1     | 2     | 3     |
+-------+-------+-------+-------+

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.