Giter VIP home page Giter VIP logo

dl's Introduction

dl's People

Contributors

task4233 avatar

Stargazers

 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

Forkers

tenntenn

dl's Issues

add README

Overview

Add readme

also adding comments for godoc

Enhance log format

Overview

The current output is just to show the result.
But, the engineer wants to know where the log is: which line? which file?.
Thus, it is better for engineers to know like below.

// main.go
package main

func SayHi[T any] (name T) {
    dl.Info(name)
    dl.TypeInfo(T)
    fmt.Println("Hi, ", name)
}

func main() {
    SayHi("Gopher")
    SayHi(57)
}

// Output:
// Info          => name: Gopher (main.go:L15)
// TypeInfo  => T: string / any 
// Hi, Gopher
// Info          => name: 57 (int / any) (main.go:L15)
// TypeInfo  => T: string / any 
// Hi, 57

expand info function

Clear and concise description of the problem

current implementation can't use variable-length argument.
It's better to be able to use.

Additional context

n/a

add feature of commented out

Clear and concise description of the problem

Developers don't want to commit the log code, but just leave these codes.
Thus, remove logging codes only while committing, and restore these logs after that.

Additional context

N/A

Available for logr

Overview

It will be better to adapt logr.Logger interface.
If so, the other package(repository) is needed.

Create init command

Clear and concise description of the problem

append information into .git/hooks/pre-commit

Additional context

N/A

provides information of type inferation

Clear and concise description of the problem

The current function provides only a type that is determined on running.
Information of type inferation might also be wanted by users.

Additional context

N/A

Add Usage command

Clear and concise description of the problem

The current command doesn't provide its information.
Thus, Usage command is needed for user.

Additional context

N/A

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.