Projects STRLCPY aix Commits a577afcc
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    examples/main.go
     1 +package main
     2 + 
     3 +import (
     4 + "fmt"
     5 + 
     6 + "github.com/projectdiscovery/aix/internal/runner"
     7 + "github.com/projectdiscovery/gologger"
     8 +)
     9 + 
     10 +func main() {
     11 + options := runner.ParseOptions()
     12 + aixRunner, err := runner.NewRunner(options)
     13 + if err != nil {
     14 + gologger.Fatal().Msgf("Could not create runner: %s\n", err)
     15 + }
     16 + 
     17 + result, err := aixRunner.Run()
     18 + if err != nil {
     19 + gologger.Fatal().Msgf("Could not run aix: %s\n", err)
     20 + }
     21 + 
     22 + fmt.Println(result.Prompt)
     23 + fmt.Println(result.Completion)
     24 +}
     25 + 
Please wait...
Page is in error, reload to recover