Git Product home page Git Product logo

Comments (3)

ramya-rao-a avatar ramya-rao-a commented on May 27, 2024 1

Ah! my bad.

My test file had some chinese characters and I was using a simple length function to get the file size.
Using Buffer.byteLength fixed the issue.

It worked like a charm with all the other files, so I was stumped.

False alarm.

Thanks!

from gomodifytags.

fatih avatar fatih commented on May 27, 2024

Hi @ramya-rao-a

How exactly are you using it? The -modified tries to read from stdin and the format is in form of:

// The archive consists of a series of files. Each file consists of a
// name, a decimal file size and the file contents, separated by
// newlinews. No newline follows after the file contents.

/cc @zmb3

from gomodifytags.

zmb3 avatar zmb3 commented on May 27, 2024

It seems you're just feeding the file in directly instead of using the archive format.
We ultimately decided on this format for consistency with other tools (guru and gogetdoc, for example).

Since you have support for gogetdoc, you may already have code to build this archive, but if not, here's an example: https://github.com/joefitzgerald/go-plus/blob/master/lib/guru-utils.js#L8

from gomodifytags.

Related Issues (20)

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.