Coder Social home page Coder Social logo

block-notes-app's Introduction

Hi, I'm Gabriele Gatti! Nice to meet you! ๐Ÿ‘‹

About me

  • I'm an Italian Computer Science student ๐Ÿ’ป, basketball passionate ๐Ÿ€ and chicken lover ๐Ÿ˜
  • I'm learning french, but for now I can only read it

My projects:

Programming languages

  • Javascript
  • Python
  • Go (and some basics of C)
  • Java

Technologies

  • Angular (16+)
  • Github Pages
  • Visual Studio Code

Links

block-notes-app's People

Contributors

gabri432 avatar

Watchers

 avatar

block-notes-app's Issues

How can I modify a specific amount of lines in a file?

What my program is doing currently:

My program has a function that allows the user to update a specific post.

When saving the changes on file database/posts.json I have to replace the content of all the file with the new updated post and rewriting the previously existing ones.

I do so by using the function "UpdatePostList" in internal_functions.go file.

Is there a way to directly modify the lines of the file I really need to change?

I know that there is a function from the os package called "(*os.File).WriteAt", but this uses a byte as starting position.
In order to use it I should know how many bytes I need to read before getting to the line I want to modify.

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.