Documentation ¶
Index ¶
- Variables
- func Checker(text, pattern string) string
- func Contains(a interface{}, e interface{}) bool
- func Intersect(a interface{}, b interface{}) []interface{}
- func Mod(a, b int) int
- func WalkDir(root string, filename string) ([]string, error)
- type PlagarismChecker
- func (pc PlagarismChecker) CalculateHash(content, docType string)
- func (pc PlagarismChecker) CalculatePlagarismRate() float64
- func (pc PlagarismChecker) GetFileContent(filename string) string
- func (pc PlagarismChecker) GetRate() float64
- func (pc PlagarismChecker) PrepareContent(content string) string
- type RabinKarp
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &Z.Cmd{ Name: `rk`, Aliases: []string{}, Copyright: `Copyright 2023 Christian Hageloch`, Version: `v0.1.2`, License: `MIT`, Source: `git@github.com:chriswifn/rk.git`, Issues: `github.com/chriswifn/rk/issues`, Commands: []*Z.Cmd{compareCmd, help.Cmd, vars.Cmd, conf.Cmd, initCmd, filterCmd}, Summary: help.S(_rk), Description: help.D(_rk), }
Functions ¶
Types ¶
type PlagarismChecker ¶
func NewPlagarismChecker ¶
func NewPlagarismChecker(fileA, fileB string) *PlagarismChecker
func (PlagarismChecker) CalculateHash ¶
func (pc PlagarismChecker) CalculateHash(content, docType string)
func (PlagarismChecker) CalculatePlagarismRate ¶
func (pc PlagarismChecker) CalculatePlagarismRate() float64
func (PlagarismChecker) GetFileContent ¶
func (pc PlagarismChecker) GetFileContent(filename string) string
func (PlagarismChecker) GetRate ¶
func (pc PlagarismChecker) GetRate() float64
func (PlagarismChecker) PrepareContent ¶
func (pc PlagarismChecker) PrepareContent(content string) string
type RabinKarp ¶
func NewRabinKarp ¶
func (*RabinKarp) CurrentWindowText ¶
CurrentWindowText return the current window text
func (*RabinKarp) NextWindow ¶
Click to show internal directories.
Click to hide internal directories.