  In this paper, we consider minimal linear codes in a general construction of
linear codes from q-ary functions. First, we give the sufficient and necessary
condition for codewords to be minimal. Second, as an application, we present
four constructions of minimal linear codes which contained some recent results
as special cases.
