Code Monkey home page Code Monkey logo

Comments (7)

welcome avatar welcome commented on April 30, 2024

Thanks for opening your first issue here! ๐ŸŽ‰ Be sure to follow the issue template!

from fiber.

Fenny avatar Fenny commented on April 30, 2024

Fiber and other frameworks rely on flag.Parse. This problem could be on Kingpins end. Does it relate to this issue alecthomas/kingpin#194?

If you could provide an error log, we might be able to help out.

from fiber.

dominicqi avatar dominicqi commented on April 30, 2024

Fiber and other frameworks rely on flag.Parse. This problem could be on Kingpins end. Does it relate to this issue alecthomas/kingpin#194?

If you could provide an error log, we might be able to help out.

I edit the code snippet. if no flag set the server start success. but if i start with flag
./test --test=kingpin flag provided but not defined: -test Usage of ./test: -child is child process -prefork use prefork

from fiber.

dominicqi avatar dominicqi commented on April 30, 2024

I'm a little confused why prefork and child setting by flag? why not like other parameters like 'Banner' or 'Engine.xxx'. If someone use fiber , they have to set the flags,if they want change .It sounds a little strange.

from fiber.

Fenny avatar Fenny commented on April 30, 2024

@dominicqi I created a PR with a possible fix, could you try it again with the master branch?

from fiber.

dominicqi avatar dominicqi commented on April 30, 2024

@dominicqi I created a PR with a possible fix, could you try it again with the master branch?

It not work.
if flag.Lookup(name) == nil always be true.
Lookup find flag reg by flag.Varใ€‚

Could we simple remove this two flag ?

I means change to settings?

emm, i see the prefork func. can not remove this two flag

from fiber.

Fenny avatar Fenny commented on April 30, 2024

@dominicqi, we fixed this issue in v1.7.1
https://github.com/gofiber/fiber/releases/tag/v1.7.1

Could you update to latest version and tell me if it works?

from fiber.

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.