Coder Social home page Coder Social logo

ggframe's Introduction

记录下开发这个web框架遇到的问题

1、go run main.go 报错 undefined

解决方案:

golang 编译器 默认只加载一个main包下的一个main.go 文件,如果同一个main包下有多个 .go 的文件,其他文件默认不会加载,如下图:

766e6583bc42b618fd8f97e7e.png

fsm.go 中定义了变量和函数,main.go 中调用。cmd 运行 go run main.go 就报错undefined.

解决办法 go run *.go 或者 go run . 文件全部加载

2、fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

起因是挂了梯子出现问题,把梯子关闭,然后重启goland即可运行。

ggframe's People

Contributors

ggboya avatar

Stargazers

 avatar

Watchers

 avatar

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.