baris / goit Goto Github PK
View Code? Open in Web Editor NEWGit web interface in Go
Git web interface in Go
Currently I can't drill down into the repositories and changes as much as I'd want.
The simplest implementation would simply link back to gitweb at some point in the hyperlink tree.
A nice suggestion from Buck Golemon. http://www.kryogenix.org/code/browser/sorttable/
Feature request from Eric Lui.
Feature request from Eric Lui.
The reported GitwebUrl assumes that the service will always be on port 80. This is untrue. The -port input should be used to append a :$port to the domain name when the port is not 80.
Current behavior:
$ ./goit
Usage of ./goit:
-excludeRegexp="": Exlude paths from being listed
-gitwebServer="localhost": Gitweb server's hostname
-port="8080": Port to listen from
-runServer=false: Run web server or just print repositories
$ ./goit .
{"Name":"goit","Path":"/home/buck/trees/theirs/goit","RelativePath":"home/buck/trees/theirs/goit","GitwebUrl":"https://localhost?p=home/buck/trees/theirs/goit","Type":1}
Correct behavior:
$ ./goit .
{"Name":"goit","Path":"/home/buck/trees/theirs/goit","RelativePath":"home/buck/trees/theirs/goit","GitwebUrl":"https://localhost:8080?p=home/buck/trees/theirs/goit","Type":1}
Loading up the index.html results in a search box with placeholder text of "Search…". This is a result of encoding "Search…" with utf8, and then decoding it with cp1252 (the "latin1" of the web).
If I'm not mistaken, all that is needed is a meta-content-type header that specifies utf8 encoding.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.