Giter Site home page Giter Site logo

getting_started_cn.md文档问题 about kitex HOT 3 CLOSED

kenyk avatar kenyk commented on May 4, 2024
getting_started_cn.md文档问题

from kitex.

Comments (3)

simon0-o avatar simon0-o commented on May 4, 2024

image
没能复现你提到的情况,有可能是IDE或者编辑器导致的,可以在关闭IDE/编辑器后,在命令行重新走一遍流程,看能否复现。

from kitex.

baiyutang avatar baiyutang commented on May 4, 2024

根据kitex-develop/docs/guide/getting_started_cn.md文档,快速搭建hello例子,按照这个文档步骤,操作 新方法分别定义一个新的请求和响应,AddRequestAddResponse,并在 service Hello中增加add 方法: 在运行的时候报异常 handler.go:20:2: package kitex-examples/hello/kitex_gen/api is not in GOROOT (/root/go/src/kitex-examples/hello/kitex_gen/api) 经对比初始例子,发现kitex生成的新handler.go中多了一条引入包的import代码,如下图: image

需要升级kitex框架,升级完后,重新执行kitex命令导出接口文件,handler.go中不再有 api "kitex-examples/hello/kitex_gen/api" 升级执行以下命令: $ go get github.com/cloudwego/kitex $ go mod tidy

需要调整getting_started_cn.md文档里面的步骤,提前执行以上这两条命令

他们文档是没写清楚。不过我知道两个方式可以跑起来了,晚点整理好给你看

from kitex.

GuangmingLuo avatar GuangmingLuo commented on May 4, 2024

Problem solved, this issue will be closed.

from kitex.

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.