Git Product home page Git Product logo

coding-challenges.fyi-wc's Introduction

The Coding Challenges - Build Your Own wc Tool

https://codingchallenges.fyi/challenges/challenge-wc/

Example output (of this project's root directory):

github.com/mdwhatcott/coding-challenges.fyi-wc
$ make install && ccwc *
go version go1.22.0 darwin/amd64
go test -race -cover -timeout=1s -count=1 ./...
?       github.com/mdwhatcott/coding-challenges.fyi-wc	[no test files]
	    github.com/mdwhatcott/coding-challenges.fyi-wc/cmd/ccwc		coverage: 0.0% of statements
ok      github.com/mdwhatcott/coding-challenges.fyi-wc/wc	0.268s	coverage: 85.3% of statements
go install -ldflags="-X 'main.Version=v1.0.0'" github.com/mdwhatcott/coding-challenges.fyi-wc/cmd/...
{"name":"LICENSE.md","lines":21,"words":170,"bytes":1075}
{"name":"Makefile","lines":12,"words":34,"bytes":285}
{"name":"README.md","lines":61,"words":131,"bytes":1221}
{"name":"deps.go","lines":9,"words":19,"bytes":204}
{"name":"go.mod","lines":9,"words":13,"bytes":190}
{"name":"go.sum","lines":6,"words":18,"bytes":531}
{"files":6,"lines":118,"words":385,"bytes":3506}

Pipe output to jq -s to wrap in JSON array:

github.com/mdwhatcott/coding-challenges.fyi-wc
$ make install && ccwc * | jq -s .
go version go1.22.0 darwin/amd64
go test -race -cover -timeout=1s -count=1 ./...
?       github.com/mdwhatcott/coding-challenges.fyi-wc	[no test files]
	    github.com/mdwhatcott/coding-challenges.fyi-wc/cmd/ccwc		coverage: 0.0% of statements
ok      github.com/mdwhatcott/coding-challenges.fyi-wc/wc	0.271s	coverage: 85.3% of statements
go install -ldflags="-X 'main.Version=v1.0.0'" github.com/mdwhatcott/coding-challenges.fyi-wc/cmd/...
[
  {
    "name": "LICENSE.md",
    "lines": 21,
    "words": 170,
    "bytes": 1075
  },
  {
    "name": "Makefile",
    "lines": 12,
    "words": 34,
    "bytes": 285
  },
  {
    "name": "README.md",
    "lines": 58,
    "words": 133,
    "bytes": 1229
  },
  {
    "name": "deps.go",
    "lines": 9,
    "words": 19,
    "bytes": 204
  },
  {
    "name": "go.mod",
    "lines": 9,
    "words": 13,
    "bytes": 190
  },
  {
    "name": "go.sum",
    "lines": 6,
    "words": 18,
    "bytes": 531
  },
  {
    "files": 6,
    "lines": 115,
    "words": 387,
    "bytes": 3514
  }
]

coding-challenges.fyi-wc's People

Contributors

mdwhatcott avatar

Watchers

 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.