github.com/mem/u-root@v2.0.1-0.20181004165302-9b18b4636a33+incompatible/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 }