...

Source file src/goji.io/internal/internal.go

Documentation: goji.io/internal

     1  /*
     2  Package internal is a private package that allows Goji to expose a less
     3  confusing interface to its users. This package must not be used outside of Goji;
     4  every piece of its functionality has been exposed by one of Goji's subpackages.
     5  
     6  The problem this package solves is to allow Goji to internally agree on types
     7  and secret values between its packages without introducing import cycles. Goji
     8  needs to agree on these types and values in order to organize its public API
     9  into audience-specific subpackages (for instance, a package for pattern authors,
    10  a package for middleware authors, and a main package for routing users) without
    11  exposing implementation details in any of the packages.
    12  */
    13  package internal
    14  

View as plain text