GithubHelp home page GithubHelp logo

Comments (6)

willnorris avatar willnorris commented on May 18, 2024

Are you actually seeing these marshaling errors in practice? I've tried writing a sample test that causes an error, but am unable. Could you post an example, either here or in a pull request?

from go-github.

Kissaki avatar Kissaki commented on May 18, 2024

A simple script that leads to the unmarshalling error:

package main

import (
    "log"
    githubapi "github.com/google/go-github/github"
)

func main() {
    github := githubapi.NewClient(nil)
    uname := "Kissaki"
    _, err := github.Users.Get(uname)
    if err != nil {
        log.Fatalf("Failed to find user %s. Error: %s\n", uname, err)
    } else {
        log.Printf("Found user %s\n", uname)
    }
}

from go-github.

willnorris avatar willnorris commented on May 18, 2024

running that script, I get:

% go run main.go
2013/06/23 10:23:37 Found user Kissaki

What version of Go are you running? I've tried both 1.0.3 and 1.1, and neither throw an error for me.

from go-github.

Kissaki avatar Kissaki commented on May 18, 2024

Iā€™m running a 1.0.3 on Windows 7 x64 here.

from go-github.

Kissaki avatar Kissaki commented on May 18, 2024

With Go 1.1.1 on Windows 7 x64 this is no longer an issue.
I guess the behaviour changed from Go version 1.0 to 1.1.

So unless functionality for Go 1.0 is a goal here, Iā€™m fine with closing this.

from go-github.

willnorris avatar willnorris commented on May 18, 2024

ah, cool... thanks for following up on this. I'll close this out, but maybe we can start a "known issues" page somewhere, and mention this.

from go-github.

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.