Code Monkey home page Code Monkey logo

go-tictactoe's People

Contributors

x1ddos avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

go-tictactoe's Issues

replace import in the code example

Hey ,
I download the example and tried to build it and got error ,
cant find package ...
The import should be replaced to that
"github.com/GoogleCloudPlatform/go-endpoints/endpoints"

Cannot compile with newest SDK.

Hi there :)

I've installed the Go Google Appengine ver. 1.9.27 and I'm trying to get your tic-tac-toe demo up and running.

But, I get compile problems regarding endpoints.Context and appengine.Context (see below)

I'm new to both Go, Google App Engine and Google Endpoints :)

Do you know what I need to change to get it to work?

Cheers,
Jesper


ERROR 2015-10-27 17:15:32,951 go_runtime.py:179] Failed to build Go application: (Executed command: c:\work\go_appengine\goroot\bin\go-app-builder.exe -app_base C:\Work\gae-go-test\app -arch 6 -dynamic -goroot c:\work\go_appengine\goroot -nobuild_files ^^$ -unsafe -gopath c:\work\go_appengine\gopath -binary_name _go_app -extra_imports appengine_internal/init -work_dir c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin -gcflags -I,c:\work\go_appengine\goroot\pkg\windows_amd64_appengine -ldflags -L,c:\work\go_appengine\goroot\pkg\windows_amd64_appengine tictactoe\api.go main.go tictactoe\models.go)
c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin\tictactoe\api.go:87: undefined: appengine
c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin\tictactoe\api.go:117: cannot use c (type context.Context) as type "appengine".Context in argument to score.put:
context.Context does not implement "appengine".Context (missing Call method)
c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin\tictactoe\api.go:127: undefined: endpoints.Context
c:\users\jesper\appdata\local\temp\tmpbufkv1appengine-go-bin\tictactoe\api.go:136: cannot use u (type *"google.golang.org/appengine/user".User) as type *"appengine/user".User in return argument

Tried to build project as a Java client and got HTTP 400 error

I tried to build your app as a Java client and got this error

mik@mik-Aspire-S3:~/go-programs$ URL='https://go-endpoints.appspot.com/tictactoe'
mik@mik-Aspire-S3:~/go-programs$ curl -s $URL > tic_testmik@mik-Aspire-S3:~/go-programs$ $HOME/go_appengine/endpointscfg.py gen_client_lib java tic_test
Traceback (most recent call last):
  File "/home/mik/go_appengine/endpointscfg.py", line 133, in <module>
    run_file(__file__, globals())
  File "/home/mik/go_appengine/endpointscfg.py", line 129, in run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 561, in <module>
    main(sys.argv)
  File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 557, in main
    args.callback(args)
  File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 458, in _GenClientLibCallback
    args.build_system)
  File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 335, in _GenClientLib
    build_system, client_name)
  File "/home/mik/go_appengine/google/appengine/tools/endpointscfg.py", line 366, in _GenClientLibFromContents
    raise ServerRequestException(error)
__main__.ServerRequestException: HTTP 400 (Bad Request) error when communicating with URL: https://google-api-client-libraries.appspot.com/generate.  Details: ill-formed JSON: No JSON object could be decoded

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.