github.com/oweisse/u-root@v0.0.0-20181109060735-d005ad25fef1/pkg/complete/types.go (about) 1 // Copyright 2012-2018 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package complete 6 7 // Completer is an interface for completion functions. 8 // It is passed a string and returns a []string with all 9 // matches and an error. 10 type Completer interface { 11 Complete(s string) ([]string, error) 12 }