Jelajahi Sumber

Add more comments (GoDoc)

Frédéric Guillot 8 tahun lalu
induk
melakukan
9652dfa1fe
28 mengubah file dengan 256 tambahan dan 6 penghapusan
  1. 1 5
      README.md
  2. 10 0
      api/doc.go
  3. 10 0
      cli/doc.go
  4. 10 0
      config/doc.go
  5. 10 0
      crypto/doc.go
  6. 10 0
      daemon/doc.go
  7. 10 0
      doc.go
  8. 10 0
      duration/doc.go
  9. 10 0
      errors/doc.go
  10. 10 0
      fever/doc.go
  11. 10 0
      filter/doc.go
  12. 10 0
      http/doc.go
  13. 10 0
      integration/doc.go
  14. 10 0
      locale/doc.go
  15. 10 0
      logger/doc.go
  16. 10 0
      model/doc.go
  17. 10 0
      oauth2/doc.go
  18. 10 0
      reader/doc.go
  19. 10 0
      scheduler/doc.go
  20. 10 0
      sql/doc.go
  21. 10 0
      storage/doc.go
  22. 10 0
      template/doc.go
  23. 10 0
      timer/doc.go
  24. 10 0
      ui/doc.go
  25. 10 0
      url/doc.go
  26. 4 0
      url/url_test.go
  27. 10 0
      version/doc.go
  28. 1 1
      version/version.go

+ 1 - 5
README.md

@@ -1,6 +1,7 @@
 Miniflux 2
 ==========
 [![Build Status](https://travis-ci.org/miniflux/miniflux.svg?branch=master)](https://travis-ci.org/miniflux/miniflux)
+[![GoDoc](https://godoc.org/github.com/miniflux/miniflux?status.svg)](https://godoc.org/github.com/miniflux/miniflux)
 [![Documentation Status](https://readthedocs.org/projects/miniflux/badge/?version=latest)](https://docs.miniflux.net/)
 
 Miniflux is a minimalist and opinionated feed reader:
@@ -16,11 +17,6 @@ It's simple, fast, lightweight and super easy to install.
 
 Miniflux 2 is a rewrite of [Miniflux 1.x](https://github.com/miniflux/miniflux-legacy) in Golang.
 
-Notes
------
-
-Miniflux 2 still in development and **it's not ready to use**.
-
 Documentation
 -------------
 

+ 10 - 0
api/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package api implements API endpoints for Miniflux application.
+
+*/
+package api

+ 10 - 0
cli/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package cli implements command line arguments for Miniflux application.
+
+*/
+package cli

+ 10 - 0
config/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package config handles configuration values for Miniflux application.
+
+*/
+package config

+ 10 - 0
crypto/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package crypto implements helpers related to cryptography.
+
+*/
+package crypto

+ 10 - 0
daemon/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package daemon handles the main application process.
+
+*/
+package daemon

+ 10 - 0
doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package main implements a feed reader application.
+
+*/
+package main

+ 10 - 0
duration/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package duration implements helpers to calculate time duration.
+
+*/
+package duration

+ 10 - 0
errors/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package errors handles localized errors.
+
+*/
+package errors

+ 10 - 0
fever/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package fever implements Fever API endpoints.
+
+*/
+package fever

+ 10 - 0
filter/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package filter implements a content filter to rewrite image links.
+
+*/
+package filter

+ 10 - 0
http/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package http implements a set of utilities related to the HTTP protocol.
+
+*/
+package http

+ 10 - 0
integration/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package integration implements API clients for third-party services.
+
+*/
+package integration

+ 10 - 0
locale/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package locale handles the internationalization of the application.
+
+*/
+package locale

+ 10 - 0
logger/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package logger handles application log messages with different levels.
+
+*/
+package logger

+ 10 - 0
model/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package model contains all data structures used by the application.
+
+*/
+package model

+ 10 - 0
oauth2/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package oauth2 abstracts different OAuth2 providers.
+
+*/
+package oauth2

+ 10 - 0
reader/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package reader implements everything related to feed parsing.
+
+*/
+package reader

+ 10 - 0
scheduler/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package scheduler implements the application internal scheduler.
+
+*/
+package scheduler

+ 10 - 0
sql/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package sql contains all SQL queries or database schema instructions.
+
+*/
+package sql

+ 10 - 0
storage/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package storage implements a set of functions to interact with the database.
+
+*/
+package storage

+ 10 - 0
template/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package template handles template parsing and execution.
+
+*/
+package template

+ 10 - 0
timer/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package timer implements utility functions to measure the execution time of a block of code.
+
+*/
+package timer

+ 10 - 0
ui/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package ui implements handlers to render to user interface.
+
+*/
+package ui

+ 10 - 0
url/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package url implements a set of utility functions to parse URL.
+
+*/
+package url

+ 4 - 0
url/url_test.go

@@ -1,3 +1,7 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the Apache 2.0
+// license that can be found in the LICENSE file.
+
 package url
 
 import "testing"

+ 10 - 0
version/doc.go

@@ -0,0 +1,10 @@
+// Copyright 2018 Frédéric Guillot. All rights reserved.
+// Use of this source code is governed by the MIT license
+// that can be found in the LICENSE file.
+
+/*
+
+Package version contains application and build information.
+
+*/
+package version

+ 1 - 1
version/version.go

@@ -4,7 +4,7 @@
 
 package version
 
-// Version of the application (generate with "make build")
+// Version of the application (generated with "make build")
 var Version = "undefined"
 
 // BuildDate is generated with "make build"