Git Product home page Git Product logo

gnocco's People

Contributors

amery avatar karasz avatar

gnocco's Issues

genroot's hardcoded output

currently genroot has the output location hardcoded in main.go. I do believe it should use stdout and/or -o ./roots

I have this on the dev-amery-darvaza branch currently to change the location. but it's definitively not the way

--- a/cmd/genroot/main.go
+++ b/cmd/genroot/main.go
@@ -23,7 +23,7 @@ var myroots = map[string]*ips{}

 const (
        url       = "https://www.internic.net/domain/named.root"
-       rootsfile = "doc/roots"
+       rootsfile = "cmd/gnocco/roots"
 )

 func trimDot(s string) string {

Make revive happy

At the moment revive is not that happy about Gnocco:

⚠  https://revive.run/r#package-comments  should have a package comment
server/gnocco/cache.go:1:1
⚠  https://revive.run/r#exported  exported function NewFromFilename should have comment or be unexported
server/gnocco/config.go:51:1
⚠  https://revive.run/r#exported  exported type GnoccoServer should have comment or be unexported
server/gnocco/server.go:14:6
⚠  https://revive.run/r#exported  type name will be used as gnocco.GnoccoServer by other packages, and that stutters; consider calling this Server
server/gnocco/server.go:14:6
⚠  https://revive.run/r#exported  exported method GnoccoServer.Addr should have comment or be unexported
server/gnocco/server.go:23:1
⚠  https://revive.run/r#exported  exported method GnoccoServer.Logger should have comment or be unexported
server/gnocco/server.go:27:1
⚠  https://revive.run/r#exported  exported method GnoccoServer.DumpCache should have comment or be unexported
server/gnocco/server.go:31:1
⚠  https://revive.run/r#exported  exported method GnoccoServer.Run should have comment or be unexported
server/gnocco/server.go:59:1
⚠  https://revive.run/r#exported  exported method GnoccoServer.ShutDown should have comment or be unexported
server/gnocco/server.go:106:1
⚠ 9 problems (0 errors, 9 warnings)

Warnings:
8  exported
1  package-comments

Please create a PR for that

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.