Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 04:47
    RuanHerculano review_requested #1714
  • 04:47
    RuanHerculano opened #1714
  • Jan 24 21:49

    kataras on master

    minor (see previous commit) (compare)

  • Jan 24 21:48

    kataras on master

    minor (see previous commit) (compare)

  • Jan 24 21:45

    kataras on master

    minor (see previous commit) (compare)

  • Jan 24 21:34

    kataras on master

    New feature: Context.ReadJSONStโ€ฆ (compare)

  • Jan 24 12:09

    kataras on master

    New feature: Fallback views. Reโ€ฆ (compare)

  • Jan 23 22:49

    kataras on master

    thank you @mattbowen for your kโ€ฆ (compare)

  • Jan 23 22:43

    kataras on master

    thank you @always-waiting for yโ€ฆ (compare)

  • Jan 23 03:14

    kataras on master

    README: minor (compare)

  • Jan 23 01:52

    kataras on master

    Update README_ZH.md Merge pull request #1707 from wโ€ฆ (compare)

  • Jan 23 01:52
    kataras closed #1707
  • Jan 23 01:52

    kataras on master

    udpate modifyProxiedRequest Merge pull request #1710 from tโ€ฆ (compare)

  • Jan 23 01:52
    kataras closed #1710
  • Jan 21 17:17
    tuhao1020 edited #1710
  • Jan 21 17:15
    tuhao1020 review_requested #1710
  • Jan 21 17:15
    tuhao1020 opened #1710
  • Jan 21 03:57

    kataras on master

    Add example for #1706 (we alreaโ€ฆ (compare)

  • Jan 21 03:25

    kataras on master

    update host.ProxyHandler to comโ€ฆ update TestProxy add ProxyHandlerRemote and NewPโ€ฆ and 1 more (compare)

  • Jan 21 03:25
    kataras closed #1703
Gerasimos (Makis) Maropoulos
@kataras
Damon Blais
@AlbinoGeek
@kataras Although, he does have a point about the comparison of v -- if it's nil you return nil? You could have just returned it anyways.
vuhoanglam
@vuhoanglam
anyone downloaded the 4th iris book?
vuhoanglam
@vuhoanglam
after donate I get a zip file like this alt book and don't know where to start reading
Gerasimos (Makis) Maropoulos
@kataras
@vuhoanglam You have been invited to the https://github.com/kataras/iris-premium and the donators chat, please check your e-mails :) Some users donate $1 or 0.xx... I want to give them something in return :) They get that zip "random" section file as a preview. When Stripe completes your order, I receive an e-mail, I do manual verification of github username and e.t.c. and then you are invited to the premium support repository and your name is visible on https://iris-go.com and github.com/kataras/iris README.
Gerasimos (Makis) Maropoulos
@kataras
@vuhoanglam Thank you for the support :heart:
Gerasimos (Makis) Maropoulos
@kataras

@kataras Although, he does have a point about the comparison of v -- if it's nil you return nil? You could have just returned it anyways.

He has a point to be honest, but my eye stucked on that "defer" one. I was thinking to support an error of key found but nil entry (e.g. map["key"] = nil interface) when I designed that conn's Get, but then I decided that was not necessary and the code was like that. I'll re-format it, although, to be realistic it does not cost anything and also the Conn.Set/Get is only for pure neffos users, iris users mostly use the iris.Context.Values().Set/Get to store request values.

Here it's:

func (c *Conn) Get(key string) interface{} {
    c.storeMutex.RLock()
    if c.store == nil {
        c.storeMutex.RUnlock()
        return nil
    }

    v := c.store[key]
    c.storeMutex.RUnlock()
    return v
}
OK, neffos updated to 0.0.18 (dependencies updates included). Thanks both of you @lihaotian0607 and @AlbinoGeek :heart:
Gerasimos (Makis) Maropoulos
@kataras
@lihaotian0607 I have seen your dart-client for neffos. Just have not time to discuss it further, we'll discuss and "promote" it on neffos readme (and iris examples) soon ๐Ÿฅณ
waiting for update
Gerasimos (Makis) Maropoulos
@kataras
Are we sure those will be ever implemented in dart lang? And are those really necessary?
lee
@lihaotian0607
It is not necessary, but for convenience I am waiting for him to update!
๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
Javad Rajabzade
@Ja7adR

Hello @Ja7adR,

We have almost 200 examples, there is no a single example of :param or *iris.Context. Please check: https://iris-go.com/docs and https://github.com/kataras/iris/tree/master/_examples/routing.

router.Get("/demo/{pid:int}", ProductDemo.Product)

Your handler must accept iris.Context NOT *iris.Context:

func Product(ctx iris.Context) {
// ...
}

thank you

Javad Rajabzade
@Ja7adR
@kataras Bro I don't have $ money for donate can i get book other edition for gift? i ago time request for Iris book pdf (https://bit.ly/iris-req-book)
Javad Rajabzade
@Ja7adR
guys how to get clientIP on remote in server? with gin is easy using ctx.ClientIP() but Iris how to do?
tuhao1020
@tuhao1020
@Ja7adR use ctx.RemoteAddr()
Javad Rajabzade
@Ja7adR

@Ja7adR use ctx.RemoteAddr()

tnx man

Javad Rajabzade
@Ja7adR

guys i have problem with url params , i use this mode in gin gonic work it without problem but in Iris on get I received Not Found , this is parameter /validate=:lic or /validate={lic:string} or /?validate=:lic

sample 127.0.0.1:8080/validate=123456

code router.Get("/validate/:lic", src.GetLicense)

Gerasimos (Makis) Maropoulos
@kataras

@kataras Bro I don't have $ money for donate can i get book other edition for gift? i ago time request for Iris book pdf (https://bit.ly/iris-req-book)

Hello @Ja7adR, this is the old link, the new one is: https://www.iris-go.com/#ebookDonateForm but no problem, send me your GitHub username, I am sure we will find a way you can support Iris without $$.

guys i have problem with url params , i use this mode in gin gonic work it without problem but in Iris on get I received Not Found , this is parameter /validate=:lic or /validate={lic:string} or /?validate=:lic

sample 127.0.0.1:8080/validate=123456

code router.Get("/validate/:lic", src.GetLicense)

As we've said above, in Iris you do not have :param or *param. Use {param:string} and {param:path} respectfully. Routing examples: https://github.com/kataras/iris/tree/master/_examples/routing.

Javad Rajabzade
@Ja7adR

@kataras Bro I don't have $ money for donate can i get book other edition for gift? i ago time request for Iris book pdf (https://bit.ly/iris-req-book)

Hello @Ja7adR, this is the old link, the new one is: https://www.iris-go.com/#ebookDonateForm but no problem, send me your GitHub username, I am sure we will find a way you can support Iris without $$.

my github username is @Ja7adR but , I in iris is Beginner

Gerasimos (Makis) Maropoulos
@kataras
OK @Ja7adR I see. Brother you didn't even starred Iris ๐Ÿ˜‚
Javad Rajabzade
@Ja7adR

OK @Ja7adR I see. Brother you didn't even starred Iris ๐Ÿ˜‚

๐Ÿ˜‚๐Ÿ˜‚ i fotget for star

Gerasimos (Makis) Maropoulos
@kataras
No worries, I sent you a private message :)
jc91715
@jc91715
hi
Massimiliano Bertinetti
@maxbertinetti
Hey @kataras I don't know why I'm not on the Iris Premium anymore, but my link is expired.
Massimiliano Bertinetti
@maxbertinetti
Not the chat, the Github
Gerasimos (Makis) Maropoulos
@kataras
@maxbertinetti Yes, the Github's invitation link's expiration duration is 7 days. I will send you a new one!
Hello @jc91715 welcome to the Iris Community Chat!
Massimiliano Bertinetti
@maxbertinetti
@kataras Invite accepted. Thanks!
Dragan
@escugs
Hello and thanks for inviting me.
Dragan
@escugs
I know this may sound stupid, but what is Iris Premium ?
Massimiliano Bertinetti
@maxbertinetti
@escugs Is the channel / repo for ppl that donate to Iris
Dragan
@escugs
@maxbertinetti Thanks.
Gerasimos (Makis) Maropoulos
@kataras
Exactly, good morning @maxbertinetti @escugs !
You're welcome @maxbertinetti. I thank you for the support <3
Dragan
@escugs
To be honest i am looking at iris and buffalo for my next project for the charity. I don't have experience in frontend, must my dev work is backend, console apps and API's. My question is I am not sure if there is private masg here or not, but here it is: What of this two framework to take. ( please be bias if possible.) Application is HR management. Charity have multiple orgs in them. Main office manage all smaller ones. App is not big will have few pages. ( I will ask someone to build HTML and JS and I will implement it later in app )
Gerasimos (Makis) Maropoulos
@kataras
Hello @escugs, for features comparison you can check the documentation of both frameworks and make your own believes, my answer will be short and based on my experience working with Go as a lead developer on many start-up companies. Iris is a complete framework with support of all of its parts, buffalo at the other hand, beside its performance issues, it is a collection of third-party tools that you don't gain enough support. To be honest, when you are working in production with a framework you need good support, features and performance, Iris completes all the above.
Dragan
@escugs
@kataras Thanks for that info. I will try to use Iris for the project for the charity.
Dragan
@escugs
@kataras Do you have any date for the new version that I see in the GitHub mentions ?
Gerasimos (Makis) Maropoulos
@kataras
@escugs The version is almost complete ( I just want to push a single new feature more), but the documentation is somewhat behind. I am helping a startup company for the last week and that takes me a lot of my time, literally I dont have enough time to complete the documentation soon, but that's not stopping you from using the master branch as it is, the go toolchain will tag the version based on the commit so you are safe until the next version is released.
focusonline
@focusonline
@kataras I have a question about release, when will the next stable version be released? so far, the v12 alpha version was released 3 months ago
I encounter a problem when using v12 v12.2.0-alpha, it is not so stable for same request , I want to downgrade the version to v12.2.0, but it does not work, it drives me crazy
I want to downgrade the version to v12.1.8 stable, but never work
go mod always uses the master version to build , what is happening?
Gerasimos (Makis) Maropoulos
@kataras

@focusonline you can downgrade, just change the @v12-alpha to @v12.1.8 however this is not recommended, if you have troubles using v12-alpha there is the @master branch which contains fixes over the 3 months old alpha version.

If you have issues please open a github ticket so I and others can provide assistance.

focusonline
@focusonline
@kataras okay, thanks! but seems, master can not defeat the last release (v12.2.0-alpha) in go mod, unless I disable go mod updating from github automatically, temporarily, I switch the web framework to gin for urgent purpose, but my another project is still counting on IRIS, as to the bug, I can not tell the details, because it is not easy to reproduce, the phenomenon is when writing response to client, suddenly nil point exception, I saved the stack information, but I do not think it is helpful. maybe it has been fixed recently by other tickets. thanks again, will update IRIS next stable release as long as it comes
by the way, no offense, would you please take the stable release into account only? for go mod updater, it always pull the latest release from git hub, no matter it is stable or not.