GithubHelp home page GithubHelp logo

rumyantseva / go-velobike Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 7.0 61 KB

Unofficial Go client library to deal with REST API of velobike.ru project ๐Ÿšฒ

License: MIT License

Go 100.00%
golang library velobike

go-velobike's Introduction

Hello and welcome!

I hope you will find something useful here ๐Ÿค“

My name is Elena Grahovac, I develop a truly Open Source MongoDB alternative at @FerretDB.

The main topics of this account are DevOps culture and the Go programming language.

Recent:

Other links:

  • Videos of some talks and workshops I have given (mostly in Russian).
  • My twitter: @webdeva, if you have a question feel free to ping me there.
  • Other ways to contact me: grahovac.pro.

go-velobike's People

Contributors

billglover avatar gunjan01 avatar ilyaglow avatar pborzenkov avatar rumyantseva avatar

Stargazers

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

Watchers

 avatar  avatar

go-velobike's Issues

go linter issues

Linter warns what some variables should have different names:

velobike/authorize.go:11:2: struct field SessionId should be SessionID
velobike/history.go:16:2: struct field Id should be ID
velobike/parkings.go:17:2: struct field Id should be ID
velobike/profile.go:10:2: struct field UserId should be UserID
velobike/profile.go:16:2: struct field AvatarUrl should be AvatarURL
velobike/profile.go:22:2: struct field TariffId should be TariffID
velobike/velobike.go:12:2: const baseUrl should be baseURL
velobike/velobike.go:30:2: struct field SessionId should be SessionID

It's not possible to change it in the current major version (0.x.x) because it'll break back compatibility.
So, this issue should be fixed in the next major version (1.0.0).

Add golangci integration

The golangci project (https://golangci.com) offers free support for open source projects and libraries.
It might make sense to add golangci integration to this project (and fix the issues which golangci report against this library).

Dealing with Time fields

Response bodies contain some fields related with time. For example, StartDate and Duration. Right now we handle these fields as strings but for the next major version it's better to parse this data to time.Time type.

Examples no longer compile after fix for #2

The examples no long compile after the fix for #2.

An example of this is L36 in the history example:

client.SessionId = auth.SessionId

This should be:

client.SessionID = auth.SessionID

All other examples suffer the same issue.

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.